Skip to content

Commit 73283c1

Browse files
committed
fix: avoid empty manager field in ControlPlaneProvider when no features gates provided
1 parent 68aa208 commit 73283c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/charts/cluster-api-operator/templates/control-plane.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ spec:
4545
version: {{ $controlPlaneVersion }}
4646
{{- end }}
4747
{{- if $.Values.manager }}
48-
manager:
4948
{{- if hasKey $.Values.manager.featureGates $controlPlaneName }}
49+
manager:
5050
{{- range $key, $value := $.Values.manager.featureGates }}
5151
{{- if eq $key $controlPlaneName }}
5252
featureGates:

0 commit comments

Comments
 (0)