Skip to content

Commit 8a510c0

Browse files
committed
avoid extra newlines around conditions in template
1 parent 9c3c5d1 commit 8a510c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

deploy/addons/ingress/ingress-deploy.yaml.tmpl

+4-4
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,9 @@ spec:
351351
- --validating-webhook=:8443
352352
- --validating-webhook-certificate=/usr/local/certificates/cert
353353
- --validating-webhook-key=/usr/local/certificates/key
354-
{{if .CustomIngressCert}}
354+
{{- if .CustomIngressCert}}
355355
- --default-ssl-certificate={{ .CustomIngressCert }}
356-
{{end}}
356+
{{- end}}
357357
securityContext:
358358
capabilities:
359359
drop:
@@ -449,9 +449,9 @@ webhooks:
449449
failurePolicy: Fail
450450
sideEffects: None
451451
admissionReviewVersions:
452-
{{if eq .IngressAPIVersion "v1beta1"}}
452+
{{- if eq .IngressAPIVersion "v1beta1"}}
453453
- v1
454-
{{end}}
454+
{{- end}}
455455
- {{.IngressAPIVersion}}
456456
clientConfig:
457457
service:

0 commit comments

Comments
 (0)