kafbat / helm-charts

Helm charts for kafbat projects
https://ui.charts.kafbat.io/
Apache License 2.0
6 stars 13 forks source link

Use tpl on network policies custom rules to allow for dynamic values #20

Closed xr09 closed 1 month ago

xr09 commented 4 months ago

For large scenarios, sometimes we need to reference a namespace or a label containing some dynamic value.

With this change, we'll be able to use any variable in the custom rules.

customRules:
  - to:
    - namespaceSelector:
      matchLabels:
        kubernetes.io/metadata.name: data-stream-{{ .Values.dynamic.value }}
xr09 commented 1 month ago

Done. Thanks @azatsafin!