Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / platform / components / oauth2-proxy / components / oauth2-proxy / templates / secret-htpasswd-file.yaml
1 {{- if and .Values.htpasswdFile.enabled (not .Values.htpasswdFile.existingSecret) }}
2 apiVersion: v1
3 kind: Secret
4 metadata:
5   labels:
6     app: {{ template "oauth2-proxy.name" . }}
7 {{- include "oauth2-proxy.labels" . | indent 4 }}
8   name: {{ template "oauth2-proxy.fullname" . }}-htpasswd-file
9 type: Opaque
10 stringData:
11   users.txt: |-
12     {{- range $entries := .Values.htpasswdFile.entries }}
13     {{ $entries }}
14     {{- end -}}
15 {{- end }}