Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / platform / components / oauth2-proxy / components / oauth2-proxy / templates / secret-authenticated-emails-file.yaml
1 {{- if .Values.authenticatedEmailsFile.enabled }}
2 {{- if and (.Values.authenticatedEmailsFile.restricted_access) (eq .Values.authenticatedEmailsFile.persistence "secret")  }}
3 apiVersion: v1
4 kind: Secret
5 type: Opaque
6 metadata:
7   labels:
8     app: {{ template "oauth2-proxy.name" . }}
9 {{- include "oauth2-proxy.labels" . | indent 4 }}
10 {{- if .Values.authenticatedEmailsFile.annotations }}
11   annotations:
12 {{ toYaml .Values.authenticatedEmailsFile.annotations | indent 4 }}
13 {{- end }}
14   name: {{ template "oauth2-proxy.fullname" . }}-accesslist
15 data:
16   {{ default "restricted_user_access" .Values.authenticatedEmailsFile.restrictedUserAccessKey }}: {{ .Values.authenticatedEmailsFile.restricted_access | b64enc }}
17 {{- end }}
18 {{- end }}