Skip to content

Commit 777578a

Browse files
authored
Merge pull request #583 from willie-yao/fix-printer
🐛 Fix infra Helm chart logic for additionalDeployments
2 parents c3a4da3 + 3aa4c74 commit 777578a

File tree

1 file changed

+1
-12
lines changed
  • hack/charts/cluster-api-operator/templates

1 file changed

+1
-12
lines changed

hack/charts/cluster-api-operator/templates/infra.yaml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
{{- define "recursivePrinter" }}
2-
{{- range $key, $value := . }}
3-
{{- if kindIs "map" $value }}
4-
{{ $key }}:
5-
{{- include "recursivePrinter" $value | indent 2 }}
6-
{{- else }}
7-
{{ $key }}: {{ $value }}
8-
{{- end }}
9-
{{- end }}
10-
{{- end }}
111
# Infrastructure providers
122
{{- if .Values.infrastructure }}
133
{{- $infrastructures := split ";" .Values.infrastructure }}
@@ -77,8 +67,7 @@ spec:
7767
{{- end }}
7868
{{- end }}
7969
{{- if $.Values.additionalDeployments }}
80-
additionalDeployments:
81-
{{- include "recursivePrinter" $.Values.additionalDeployments | indent 2 }}
70+
additionalDeployments: {{ toYaml $.Values.additionalDeployments | nindent 4 }}
8271
{{- end }}
8372
{{- end }}
8473
{{- end }}

0 commit comments

Comments
 (0)