blob: a0418434847d6a9d118553f11ff8585c78632cff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
{{- if and (not .Values.config.existingSecret) (.Values.proxyVarsAsSecrets) }}
apiVersion: v1
kind: Secret
metadata:
{{- with .Values.config.annotations }}
annotations:
{{ tpl ( toYaml . ) $ | indent 4 }}
{{- end }}
labels:
app: {{ template "oauth2-proxy.name" . }}
{{- include "oauth2-proxy.labels" . | indent 4 }}
name: {{ template "oauth2-proxy.fullname" . }}
namespace: {{ template "oauth2-proxy.namespace" $ }}
type: Opaque
data:
{{- include "oauth2-proxy.secrets" . | nindent 2 }}
{{- end -}}
|