Commit 9ab7e8c
operator: Extract cilium-pod selector into a dedicated
`CiliumK8sNamespace` and `CiliumPodLabels` are consumed by three cells:
node taint sync, kvstore nodesgc, and ingress, with each site duplicating
parts of the namespace-default resolution and label-selector parsing.
This PR introduces a small `cilium-pod-config` cell holding the two fields
plus helper methods `ResolveNamespace(fallback)` and `Selector()` and
feed those to the 3 cells using them via hive dependency injection.
Signed-off-by: Hadrien Patte <hadrien.patte@datadoghq.com>cell.Config
1 parent c94c1d0 commit 9ab7e8c
23 files changed
Lines changed: 113 additions & 60 deletions
File tree
- Documentation/cmdref
- operator
- cmd
- option
- pkg
- ciliumpod
- ingress
- kvstore/nodesgc
- watchers
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments