File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
hack/charts/cluster-api-operator/templates Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -38,12 +38,25 @@ metadata:
38
38
annotations :
39
39
" helm.sh/hook " : " post-install,post-upgrade"
40
40
" helm.sh/hook-weight " : " 2"
41
- {{- if or $controlPlaneVersion $.Values.configSecret.name }}
41
+ {{- if or $controlPlaneVersion $.Values.configSecret.name $.Values.manager }}
42
42
spec :
43
43
{{- end}}
44
44
{{- if $controlPlaneVersion }}
45
45
version : {{ $controlPlaneVersion }}
46
46
{{- end }}
47
+ {{- if $.Values.manager }}
48
+ manager :
49
+ {{- if hasKey $.Values.manager.featureGates $controlPlaneName }}
50
+ {{- range $key, $value := $.Values.manager.featureGates }}
51
+ {{- if eq $key $controlPlaneName }}
52
+ featureGates :
53
+ {{- range $k, $v := $value }}
54
+ {{ $k }}: {{ $v }}
55
+ {{- end }}
56
+ {{- end }}
57
+ {{- end }}
58
+ {{- end }}
59
+ {{- end }}
47
60
{{- if $.Values.configSecret.name }}
48
61
configSecret :
49
62
name : {{ $.Values.configSecret.name }}
Original file line number Diff line number Diff line change @@ -53,6 +53,15 @@ metadata:
53
53
" argocd.argoproj.io/sync-wave " : " 2"
54
54
{{- with .Values.configSecret }}
55
55
spec :
56
+ {{- if $.Values.manager }}
57
+ manager :
58
+ {{- if and $.Values.manager.featureGates $.Values.manager.featureGates.kubeadm }}
59
+ featureGates :
60
+ {{- range $key, $value := $.Values.manager.featureGates.kubeadm }}
61
+ {{ $key }}: {{ $value }}
62
+ {{- end }}
63
+ {{- end }}
64
+ {{- end }}
56
65
configSecret :
57
66
name : {{ .name }}
58
67
{{- if .namespace }}
You can’t perform that action at this time.
0 commit comments