Skip to content

Commit 6c9e585

Browse files
committed
Add support for provider specific featureGates
1 parent b1f52e3 commit 6c9e585

File tree

1 file changed

+7
-3
lines changed
  • hack/charts/cluster-api-operator/templates

1 file changed

+7
-3
lines changed

hack/charts/cluster-api-operator/templates/infra.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,14 @@ spec:
4646
{{- end }}
4747
{{- if $.Values.manager }}
4848
manager:
49-
{{- if $.Values.manager.featureGates }}
50-
featureGates:
49+
{{- if hasKey $.Values.manager.featureGates $infrastructureName }}
5150
{{- range $key, $value := $.Values.manager.featureGates }}
52-
{{ $key }}: {{ $value }}
51+
{{- if eq $key $infrastructureName }}
52+
featureGates:
53+
{{- range $k, $v := $value }}
54+
{{ $k }}: {{ $v }}
55+
{{- end }}
56+
{{- end }}
5357
{{- end }}
5458
{{- end }}
5559
{{- end }}

0 commit comments

Comments
 (0)