Reduce 3 if statements in helm template into single line
***What does this commit/MR/PR do?***
Reduce 3 if statements in helm template into single line
***Why is this commit/MR/PR needed?***
Less code
-{{- if .Values.helmOperator.tls.enable -}}
-{{- if .Values.helmOperator.tls.verify -}}
-{{- if .Values.helmOperator.tls.caContent }}
+{{- if and .Values.helmOperator.tls.enable .Values.helmOperator.tls.verify .Values.helmOperator.tls.caContent -}}
apiVersion: v1
kind: ConfigMap
metadata:
@@ -9,5 +7,3 @@ data:
ca.crt: |
{{ .Values.helmOperator.tls.caContent | indent 4 }}
{{- end -}}
-{{- end -}}
-{{- end -}}
