blob: 20fb4928f30fc40acf0d21020d82f041ec416ba7 [file] [log] [blame]
Sketch🕴️620d57b2025-07-31 22:31:14 +04001{{- /*
2Copyright Broadcom, Inc. All Rights Reserved.
3SPDX-License-Identifier: APACHE-2.0
4*/}}
5
6{{- if .Values.serviceAccount.create -}}
7apiVersion: v1
8kind: ServiceAccount
9metadata:
10 name: {{ include "nginx.serviceAccountName" . }}
11 namespace: {{ include "common.names.namespace" . | quote }}
12 labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
13 {{- if or .Values.serviceAccount.annotations .Values.commonAnnotations }}
14 {{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.serviceAccount.annotations .Values.commonAnnotations ) "context" . ) }}
15 annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $) | nindent 4 }}
16 {{- end }}
17automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
18{{- end -}}