{{- if not .Values.enterprise.enabled -}} {{- if and .Values.nginx.enabled .Values.nginx.basicAuth.enabled (not .Values.nginx.basicAuth.existingSecret) }} apiVersion: v1 kind: Secret metadata: name: {{ include "mimir.resourceName" (dict "ctx" . "component" "nginx") }} labels: {{- include "mimir.labels" (dict "ctx" . "component" "nginx") | nindent 4 }} namespace: {{ .Release.Namespace | quote }} stringData: .htpasswd: | {{- tpl .Values.nginx.basicAuth.htpasswd $ | nindent 4 }} {{- end -}} {{- end -}}