Skip to content

Commit

Permalink
Remove recursivePrinter in favor of toYaml
Browse files Browse the repository at this point in the history
  • Loading branch information
willie-yao committed Aug 13, 2024
1 parent c3a4da3 commit 3aa4c74
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 3aa4c74

Please sign in to comment.