Skip to content

Commit

Permalink
chore: ensure http2 watch config is used by internal exemption watch (#…
Browse files Browse the repository at this point in the history
…909)

## Description
The UDS Operator has KFC watch (exemptions) that operates outside of
Pepr configured watchers. This ensures the configuration for using HTTP2
watches is respected by the exemption watch.

## Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [x] Other (security config, docs update, etc)

## Checklist before merging

- [ ] Test, docs, adr added or updated as needed
- [ ] [Contributor
Guide](https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md)
followed
  • Loading branch information
rjferguson21 authored Oct 15, 2024
1 parent de8419c commit 25bfd59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/pepr/policies/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export async function startExemptionWatch() {
relistIntervalSec: process.env.PEPR_RELIST_INTERVAL_SECONDS
? parseInt(process.env.PEPR_RELIST_INTERVAL_SECONDS, 10)
: 1800,
useHTTP2: process.env.PEPR_HTTP2_WATCH === "true",
};
const watcher = K8s(UDSExemption).Watch(async (exemption, phase) => {
log.debug(`Processing exemption ${exemption.metadata?.name}, watch phase: ${phase}`);
Expand Down
2 changes: 2 additions & 0 deletions src/pepr/uds-operator-config/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ operator:
PEPR_LAST_SEEN_LIMIT_SECONDS: "60"
# Allow Pepr to re-list resources more frequently to avoid missing resources
PEPR_RELIST_INTERVAL_SECONDS: "60"
# Use HTTP2 for Pepr watches and exemption watch
PEPR_HTTP2_WATCH: false

0 comments on commit 25bfd59

Please sign in to comment.