Files
charts/bitnami/cert-manager/templates/webhook/serviceaccount.yaml
Miguel Ruiz 2c558a26ae [bitnami/cert-manager] Chart standardized (#7925)
* [bitnami/cert-manager] Chart standardised

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

* [bitnami/cert-manager] Update components versions

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

Co-authored-by: Bitnami Containers <containers@bitnami.com>
2022-01-18 09:50:23 +01:00

16 lines
686 B
YAML

{{- if .Values.webhook.serviceAccount.create }}
apiVersion: v1
kind: ServiceAccount
automountServiceAccountToken: {{ .Values.webhook.serviceAccount.automountServiceAccountToken }}
metadata:
labels:
app.kubernetes.io/component: webhook
{{- include "common.labels.standard" . | nindent 4 }}
name: {{ template "certmanager.webhook.serviceAccountName" . }}
{{- $mergedAnnotations := merge .Values.webhook.serviceAccount.annotations .Values.commonAnnotations }}
{{- if $mergedAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" $mergedAnnotations "context" $ ) | nindent 4 }}
{{- end }}
namespace: {{ .Release.Namespace | quote }}
{{- end }}