From c1826adfe7df977c024697bf5b7d23959df207be Mon Sep 17 00:00:00 2001 From: Manuel GP <1380243+xr09@users.noreply.github.com> Date: Tue, 15 Oct 2024 13:31:21 +0200 Subject: [PATCH] Use tpl on network policies custom rules to allow for dynamic values (#20) Co-authored-by: Manuel Gutierrez --- charts/kafka-ui/Chart.yaml | 2 +- charts/kafka-ui/templates/networkpolicy-egress.yaml | 2 +- charts/kafka-ui/templates/networkpolicy-ingress.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/kafka-ui/Chart.yaml b/charts/kafka-ui/Chart.yaml index 3b2e026..2f0be5e 100644 --- a/charts/kafka-ui/Chart.yaml +++ b/charts/kafka-ui/Chart.yaml @@ -2,6 +2,6 @@ apiVersion: v2 name: kafka-ui description: A Helm chart for kafka-UI type: application -version: 1.4.8 +version: 1.4.9 appVersion: v1.0.0 icon: https://raw.githubusercontent.com/kafbat/kafka-ui/main/documentation/images/logo_new.png diff --git a/charts/kafka-ui/templates/networkpolicy-egress.yaml b/charts/kafka-ui/templates/networkpolicy-egress.yaml index 1ba60ec..cd98e99 100644 --- a/charts/kafka-ui/templates/networkpolicy-egress.yaml +++ b/charts/kafka-ui/templates/networkpolicy-egress.yaml @@ -14,6 +14,6 @@ spec: - Egress egress: {{- if .Values.networkPolicy.egressRules.customRules }} - {{- toYaml .Values.networkPolicy.egressRules.customRules | nindent 4 }} + {{- tpl (toYaml .Values.networkPolicy.egressRules.customRules) $ | nindent 4 }} {{- end }} {{- end }} diff --git a/charts/kafka-ui/templates/networkpolicy-ingress.yaml b/charts/kafka-ui/templates/networkpolicy-ingress.yaml index 5afbc55..0dcd552 100644 --- a/charts/kafka-ui/templates/networkpolicy-ingress.yaml +++ b/charts/kafka-ui/templates/networkpolicy-ingress.yaml @@ -14,6 +14,6 @@ spec: - Ingress ingress: {{- if .Values.networkPolicy.ingressRules.customRules }} - {{- toYaml .Values.networkPolicy.ingressRules.customRules | nindent 4 }} + {{- tpl (toYaml .Values.networkPolicy.ingressRules.customRules) $ | nindent 4 }} {{- end }} {{- end }}