aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/authentication/components/oauth2-proxy/templates/secret.yaml
blob: f3364e95a9a8943cb08698771534fedda73b7cff (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:
{{- if .Values.config.annotations }}
  annotations:
{{ toYaml .Values.config.annotations | 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 -}}