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