Skip to content

Commit 9ab7e8c

Browse files
HadrienPattepchaigno
authored andcommitted
operator: Extract cilium-pod selector into a dedicated cell.Config
`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>
1 parent c94c1d0 commit 9ab7e8c

23 files changed

Lines changed: 113 additions & 60 deletions

Documentation/cmdref/cilium-operator-alibabacloud.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Documentation/cmdref/cilium-operator-alibabacloud_hive.md

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Documentation/cmdref/cilium-operator-alibabacloud_hive_dot-graph.md

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Documentation/cmdref/cilium-operator-aws.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Documentation/cmdref/cilium-operator-aws_hive.md

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Documentation/cmdref/cilium-operator-aws_hive_dot-graph.md

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Documentation/cmdref/cilium-operator-azure.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Documentation/cmdref/cilium-operator-azure_hive.md

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Documentation/cmdref/cilium-operator-azure_hive_dot-graph.md

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Documentation/cmdref/cilium-operator-generic.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)