Skip to content

Commit 01a947d

Browse files
committed
fix: avoid empty manager field in ControlPlaneProvider when no controlPlane and no features gates provided
1 parent f4cb5ee commit 01a947d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ metadata:
5454
{{- with .Values.configSecret }}
5555
spec:
5656
{{- if $.Values.manager }}
57-
manager:
5857
{{- if and $.Values.manager.featureGates $.Values.manager.featureGates.kubeadm }}
58+
manager:
5959
featureGates:
6060
{{- range $key, $value := $.Values.manager.featureGates.kubeadm }}
6161
{{ $key }}: {{ $value }}

0 commit comments

Comments
 (0)