diff --git a/charts/wyoming-piper/templates/serviceaccount.yaml b/charts/wyoming-piper/templates/serviceaccount.yaml new file mode 100644 index 0000000..ae3b48c --- /dev/null +++ b/charts/wyoming-piper/templates/serviceaccount.yaml @@ -0,0 +1,14 @@ +{{- if .Values.serviceAccount.create -}} +--- +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ include "wyoming-piper.serviceAccountName" . }} + labels: + {{- include "wyoming-piper.labels" . | nindent 4 }} + {{- with .Values.serviceAccount.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +automountServiceAccountToken: {{ .Values.serviceAccount.automount }} +{{- end }}