Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / platform / components / oauth2-proxy / components / oauth2-proxy / templates / secret.yaml
1 {{- if and (not .Values.config.existingSecret) (.Values.proxyVarsAsSecrets) }}
2 apiVersion: v1
3 kind: Secret
4 metadata:
5 {{- if .Values.config.annotations }}
6   annotations:
7 {{ toYaml .Values.config.annotations | indent 4 }}
8 {{- end }}
9   labels:
10     app: {{ template "oauth2-proxy.name" . }}
11 {{- include "oauth2-proxy.labels" . | indent 4 }}
12   name: {{ template "oauth2-proxy.fullname" . }}
13 type: Opaque
14 data:
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 }}
18 {{- end -}}