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 45
45
{{- end }}
46
46
{{- if $.Values.manager }}
47
47
manager :
48
- {{- if $.Values.manager.featureGates.core }}
48
+ {{- if and $.Values.manager.featureGates $.Values.manager.featureGates.core }}
49
49
featureGates :
50
50
{{- range $key, $value := $.Values.manager.featureGates.core }}
51
51
{{ $key }}: {{ $value }}
Original file line number Diff line number Diff line change @@ -38,15 +38,15 @@ metadata:
38
38
annotations :
39
39
" helm.sh/hook " : " post-install"
40
40
" helm.sh/hook-weight " : " 2"
41
- {{- if or $infrastructureVersion $.Values.configSecret.name }}
41
+ {{- if or $infrastructureVersion $.Values.configSecret.name $.Values.manager }}
42
42
spec :
43
43
{{- end }}
44
44
{{- if $infrastructureVersion }}
45
45
version : {{ $infrastructureVersion }}
46
46
{{- end }}
47
47
{{- if $.Values.manager }}
48
48
manager :
49
- {{- if hasKey $.Values.manager.featureGates $infrastructureName }}
49
+ {{- if and (kindIs "map" $.Values.manager.featureGates) ( hasKey $.Values.manager.featureGates $infrastructureName) }}
50
50
{{- range $key, $value := $.Values.manager.featureGates }}
51
51
{{- if eq $key $infrastructureName }}
52
52
featureGates :
You can’t perform that action at this time.
0 commit comments