Skip to content

Commit 4cf0126

Browse files
authored
fix common args (#434)
1 parent 3363e45 commit 4cf0126

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

wiz-admission-controller/templates/_helpers.tpl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,14 @@ Clean the list of deployments for the auto-update flag, removing quotes and brac
304304

305305
{{- define "spec.common.commandArgs" -}}
306306
# Cluster identification flags
307-
- "--cluster-external-id={{ coalesce .Values.global.clusterExternalId .Values.webhook.clusterExternalId .Values.opaWebhook.clusterExternalId }}"
308-
- "--subscription-external-id={{ coalesce .Values.global.subscriptionExternalId .Values.webhook.subscriptionExternalId }}"
307+
{{- with (coalesce .Values.global.clusterExternalId .Values.webhook.clusterExternalId .Values.opaWebhook.clusterExternalId) }}
308+
- --cluster-external-id
309+
- {{ . | quote }}
310+
{{- end }}
311+
{{- with (coalesce .Values.global.subscriptionExternalId .Values.webhook.subscriptionExternalId) }}
312+
- --subscription-external-id
313+
- {{ . | quote }}
314+
{{- end }}
309315
{{- with (coalesce .Values.global.clusterTags .Values.webhook.clusterTags) }}
310316
- --cluster-tags
311317
- {{ . | toJson | quote }}

0 commit comments

Comments
 (0)