{{- if .Values.helmOperator.tls.enable -}}
{{- if .Values.helmOperator.tls.verify -}}
{{- if .Values.helmOperator.tls.caContent }}
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ template "flux.fullname" . }}-helm-tls-ca-config
data:
  ca.crt: |
{{ .Values.helmOperator.tls.caContent | indent 4 }}
{{- end -}}
{{- end -}}
{{- end -}}

{{- if and .Values.helmOperator.tls.enable .Values.helmOperator.tls.verify .Values.helmOperator.tls.caContent -}}
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ template "flux.fullname" . }}-helm-tls-ca-config
data:
  ca.crt: |
{{ .Values.helmOperator.tls.caContent | indent 4 }}
{{- end -}}

Reduce 3 if statements in helm template into single line
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
