X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=kubernetes%2Fplatform%2Fcomponents%2Foauth2-proxy%2Fcomponents%2Foauth2-proxy%2Ftemplates%2Fserviceaccount.yaml;fp=kubernetes%2Fplatform%2Fcomponents%2Foauth2-proxy%2Fcomponents%2Foauth2-proxy%2Ftemplates%2Fserviceaccount.yaml;h=6d0a9d7c599d6a3edd0cbf29cc53b573da96bfaa;hb=784322d219b6b64dde22847fe8dc8fb4fce1f639;hp=0000000000000000000000000000000000000000;hpb=094f8fdb59ab3b0f8d94b4609a110e44f7521770;p=oom.git diff --git a/kubernetes/platform/components/oauth2-proxy/components/oauth2-proxy/templates/serviceaccount.yaml b/kubernetes/platform/components/oauth2-proxy/components/oauth2-proxy/templates/serviceaccount.yaml new file mode 100644 index 0000000000..6d0a9d7c59 --- /dev/null +++ b/kubernetes/platform/components/oauth2-proxy/components/oauth2-proxy/templates/serviceaccount.yaml @@ -0,0 +1,14 @@ +{{- if or .Values.serviceAccount.enabled -}} +apiVersion: v1 +kind: ServiceAccount +metadata: + {{- with .Values.serviceAccount.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} + labels: + app: {{ template "oauth2-proxy.name" . }} +{{- include "oauth2-proxy.labels" . | indent 4 }} + name: {{ template "oauth2-proxy.serviceAccountName" . }} +automountServiceAccountToken : {{ .Values.serviceAccount.automountServiceAccountToken }} +{{- end -}}