Skip to content

Commit

Permalink
chore: move api service watch to reconcile (#362)
Browse files Browse the repository at this point in the history
## Description

Follow up to #359 to
move the apiservice watch to a queue/reconcile.

## Related Issue

Resolves #363

## 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

- [x] Test, docs, adr added or updated as needed
- [x] [Contributor Guide
Steps](https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md)(https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md#submitting-a-pull-request)
followed

---------

Co-authored-by: Chance <139784371+UnicornChance@users.noreply.github.com>
  • Loading branch information
mjnagel and UnicornChance authored Apr 24, 2024
1 parent 3545066 commit 1822bca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pepr/operator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ When(a.Service)
.IsCreatedOrUpdated()
.InNamespace("default")
.WithName("kubernetes")
.Watch(updateAPIServerCIDRFromService);
.Reconcile(updateAPIServerCIDRFromService);

// Watch for changes to the UDSPackage CRD and cleanup the namespace mutations
When(UDSPackage)
Expand Down

0 comments on commit 1822bca

Please sign in to comment.