Skip to content

Commit 1010297

Browse files
committed
Attempt to make --node-label a conditional in the template
1 parent d77a1dd commit 1010297

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/cloud/vsphere/assets/cloud-controller-manager-deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ spec:
102102
--leader-elect-resource-namespace=openshift-cloud-controller-manager \
103103
--feature-gates={{ .featureGates }} \
104104
--use-service-account-credentials=true \
105-
--secure-port=0 \
106-
--node-labels="$(ADDITIONAL_NODE_LABELS)"
105+
--secure-port=0 {{if ne .additionalLabels ""}}\
106+
--node-labels="$(ADDITIONAL_NODE_LABELS)"{{end}}
107107
terminationMessagePolicy: FallbackToLogsOnError
108108
volumeMounts:
109109
- name: host-etc-kube

0 commit comments

Comments
 (0)