blob: c3c5e9a277aded1e5817a480206ce4b08fb4a56d [file] [log] [blame]
Mohammed Naser8a2c8fb2023-02-19 17:23:55 +00001{{- with .Values.gateway }}
2{{- if and .enabled .basicAuth.enabled (not .basicAuth.existingSecret) }}
3apiVersion: v1
4kind: Secret
5metadata:
6 name: {{ include "loki.gatewayFullname" $ }}
Giovanni Tirloni59219b62024-04-09 14:50:25 -03007 namespace: {{ $.Release.Namespace }}
Mohammed Naser8a2c8fb2023-02-19 17:23:55 +00008 labels:
9 {{- include "loki.gatewayLabels" $ | nindent 4 }}
10stringData:
11 .htpasswd: |
12 {{- tpl .basicAuth.htpasswd $ | nindent 4 }}
13{{- end }}
14{{- end }}