Skip to content

Commit

Permalink
Add support for provider specific featureGates
Browse files Browse the repository at this point in the history
  • Loading branch information
oprinmarius committed Mar 2, 2024
1 parent b1f52e3 commit 6c9e585
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions hack/charts/cluster-api-operator/templates/infra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,14 @@ spec:
{{- end }}
{{- if $.Values.manager }}
manager:
{{- if $.Values.manager.featureGates }}
featureGates:
{{- if hasKey $.Values.manager.featureGates $infrastructureName }}
{{- range $key, $value := $.Values.manager.featureGates }}
{{ $key }}: {{ $value }}
{{- if eq $key $infrastructureName }}
featureGates:
{{- range $k, $v := $value }}
{{ $k }}: {{ $v }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
Expand Down

0 comments on commit 6c9e585

Please sign in to comment.