Files
charts/bitnami/grafana-operator/templates/serviceaccount.yaml
Miguel Ruiz fc99498571 [bitnami/grafana-operator] Chart standardised (#10277)
* [bitnami/grafana-operator] Chart standardised

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <containers@bitnami.com>

Co-authored-by: Fran Mulero <fmulero@vmware.com>
Co-authored-by: Bitnami Containers <containers@bitnami.com>
2022-05-26 12:34:46 +02:00

22 lines
1.0 KiB
YAML

{{- if and .Values.operator.serviceAccount.create .Values.operator.enabled -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "grafana-operator.serviceAccountName" . }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if or .Values.commonAnnotations .Values.operator.serviceAccount.annotations }}
annotations:
{{- if .Values.operator.serviceAccount.annotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.operator.serviceAccount.annotations "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
{{- end }}
automountServiceAccountToken: {{ .Values.operator.serviceAccount.automountServiceAccountToken }}
{{- end }}