Files
devops-infra-helm-charts-gcp/helm-templates/mimir-distributed/templates/gateway/nginx-secret.yaml
T
2026-08-26 03:39:42 +05:30

15 lines
576 B
YAML

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