File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
hack/charts/cluster-api-operator/templates Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 4545{{- end }}
4646{{- if $.Values.manager }}
4747 manager :
48- {{- if $.Values.manager.featureGates.core }}
48+ {{- if and $.Values.manager.featureGates $.Values.manager.featureGates.core }}
4949 featureGates :
5050 {{- range $key, $value := $.Values.manager.featureGates.core }}
5151 {{ $key }}: {{ $value }}
Original file line number Diff line number Diff line change @@ -38,15 +38,15 @@ metadata:
3838 annotations :
3939 " helm.sh/hook " : " post-install"
4040 " helm.sh/hook-weight " : " 2"
41- {{- if or $infrastructureVersion $.Values.configSecret.name }}
41+ {{- if or $infrastructureVersion $.Values.configSecret.name $.Values.manager }}
4242spec :
4343{{- end }}
4444{{- if $infrastructureVersion }}
4545 version : {{ $infrastructureVersion }}
4646{{- end }}
4747{{- if $.Values.manager }}
4848 manager :
49- {{- if hasKey $.Values.manager.featureGates $infrastructureName }}
49+ {{- if and (kindIs "map" $.Values.manager.featureGates) ( hasKey $.Values.manager.featureGates $infrastructureName) }}
5050{{- range $key, $value := $.Values.manager.featureGates }}
5151 {{- if eq $key $infrastructureName }}
5252 featureGates :
You can’t perform that action at this time.
0 commit comments