mirror of
https://github.com/bitnami/charts.git
synced 2026-03-12 14:57:18 +08:00
* [template] Fix usage of common.tplvalues.merge partial Signed-off-by: Max Nitze <max.nitze@mgm-tp.com> * [template] Remove unnecessary fromYaml in usages of common.tplvalues.merge partial Signed-off-by: Max Nitze <max.nitze@mgm-tp.com> --------- Signed-off-by: Max Nitze <max.nitze@mgm-tp.com> Co-authored-by: Max Nitze <max.nitze@mgm-tp.com>
20 lines
906 B
YAML
20 lines
906 B
YAML
{{- /*
|
|
Copyright VMware, Inc.
|
|
SPDX-License-Identifier: APACHE-2.0
|
|
*/}}
|
|
|
|
{{- if .Values.serviceAccount.create }}
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: {{ include "%%TEMPLATE_NAME%%.serviceAccountName" . }}
|
|
namespace: {{ include "common.names.namespace" . | quote }}
|
|
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
app.kubernetes.io/component: %%COMPONENT_NAME%%
|
|
{{- if or .Values.serviceAccount.annotations .Values.commonAnnotations }}
|
|
{{- $annotations := include "common.tplvalues.merge" (dict "values" (list .Values.serviceAccount.annotations .Values.commonAnnotations) "context" .) }}
|
|
annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
|
|
{{- end }}
|