1 {{- if and (not .Values.config.existingSecret) (.Values.proxyVarsAsSecrets) }}
5 {{- if .Values.config.annotations }}
7 {{ toYaml .Values.config.annotations | indent 4 }}
10 app: {{ template "oauth2-proxy.name" . }}
11 {{- include "oauth2-proxy.labels" . | indent 4 }}
12 name: {{ template "oauth2-proxy.fullname" . }}
15 cookie-secret: {{ tpl .Values.config.cookieSecret $ | b64enc | quote }}
16 client-secret: {{ tpl .Values.config.clientSecret $ | b64enc | quote }}
17 client-id: {{ tpl .Values.config.clientID $ | b64enc | quote }}