d9f9cffef7d4d4e8bb2a38d1ecf5ad21d9175227
[oom.git] /
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   namespace: {{ template "oauth2-proxy.namespace" $ }}
15 data:
16   {{ default "restricted_user_access" .Values.authenticatedEmailsFile.restrictedUserAccessKey }}: {{ .Values.authenticatedEmailsFile.restricted_access | quote }}
17 {{- end }}
18 {{- end }}