Skip to content

Commit

Permalink
Merge pull request #583 from willie-yao/fix-printer
Browse files Browse the repository at this point in the history
🐛 Fix infra Helm chart logic for additionalDeployments
  • Loading branch information
k8s-ci-robot authored Aug 20, 2024
2 parents c3a4da3 + 3aa4c74 commit 777578a
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions hack/charts/cluster-api-operator/templates/infra.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
{{- define "recursivePrinter" }}
{{- range $key, $value := . }}
{{- if kindIs "map" $value }}
{{ $key }}:
{{- include "recursivePrinter" $value | indent 2 }}
{{- else }}
{{ $key }}: {{ $value }}
{{- end }}
{{- end }}
{{- end }}
# Infrastructure providers
{{- if .Values.infrastructure }}
{{- $infrastructures := split ";" .Values.infrastructure }}
Expand Down Expand Up @@ -77,8 +67,7 @@ spec:
{{- end }}
{{- end }}
{{- if $.Values.additionalDeployments }}
additionalDeployments:
{{- include "recursivePrinter" $.Values.additionalDeployments | indent 2 }}
additionalDeployments: {{ toYaml $.Values.additionalDeployments | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 777578a

Please sign in to comment.