aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/authentication/components/oauth2-proxy/templates/google-secret.yaml
blob: 30a9ae1bb6ac57da615385575d2ca8dd1afa2d46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{{- 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
  namespace: {{ template "oauth2-proxy.namespace" $ }}
type: Opaque
data:
  service-account.json: {{ .Values.config.google.serviceAccountJson | b64enc | quote }}
{{- end -}}