{{- if and (not .Values.nginx.customConfigMap) .Values.nginx.enabled }} apiVersion: v1 kind: ConfigMap metadata: name: {{ template "artifactory-ha.fullname" . }}-nginx-conf labels: app: {{ template "artifactory-ha.name" . }} chart: {{ template "artifactory-ha.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} data: nginx.conf: | {{ tpl .Values.nginx.mainConf . | indent 4 }} {{- end }}