From 9b8160e74d0b49f11f228432e92bdb0af7fc8483 Mon Sep 17 00:00:00 2001 From: bp99 Date: Sun, 20 Apr 2025 23:00:36 +0200 Subject: [PATCH] chart-wyoming_piper: add serviceaccount template --- charts/wyoming-piper/templates/serviceaccount.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 charts/wyoming-piper/templates/serviceaccount.yaml 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 }}