Skip to content

Commit

Permalink
Use tpl on network policies custom rules to allow for dynamic values (#…
Browse files Browse the repository at this point in the history
…20)

Co-authored-by: Manuel Gutierrez <megutierrez@theworkshop.com>
  • Loading branch information
xr09 and Manuel Gutierrez authored Oct 15, 2024
1 parent ab4948b commit c1826ad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/kafka-ui/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion charts/kafka-ui/templates/networkpolicy-egress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion charts/kafka-ui/templates/networkpolicy-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit c1826ad

Please sign in to comment.