k8s-charts/charts/cyberchef/templates/serviceaccount.yaml

14 lines
393 B
YAML
Raw Normal View History

2024-07-13 21:53:53 +00:00
{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "cyberchef.serviceAccountName" . }}
labels:
{{- include "cyberchef.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
automountServiceAccountToken: {{ .Values.serviceAccount.automount }}
{{- end }}