aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/platform/components/oauth2-proxy/components/oauth2-proxy/templates/google-secret.yaml
blob: 5703273d937dec880fcaa8c02de90346757be804 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{{- if and .Values.config.google (and (not .Values.config.google.existingSecret) (not .Values.config.google.useApplicationDefaultCredentials)) }}
apiVersion: v1
kind: Secret
metadata:
  labels:
    app: {{ template "oauth2-proxy.name" . }}
{{- include "oauth2-proxy.labels" . | indent 4 }}
  name: {{ template "oauth2-proxy.fullname" . }}-google
type: Opaque
data:
  service-account.json: {{ .Values.config.google.serviceAccountJson | b64enc | quote }}
{{- end -}}