From 3635a8171c398fd24108995e30934d2c4b440c75 Mon Sep 17 00:00:00 2001 From: Stephen Herd Date: Tue, 11 Jan 2022 11:55:05 -0800 Subject: [PATCH] Updates to include annotations to the service account, needed for things such as Workload Identity in Google Cloud --- charts/descheduler/templates/serviceaccount.yaml | 3 +++ charts/descheduler/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/charts/descheduler/templates/serviceaccount.yaml b/charts/descheduler/templates/serviceaccount.yaml index 8149ce072..060cb5598 100644 --- a/charts/descheduler/templates/serviceaccount.yaml +++ b/charts/descheduler/templates/serviceaccount.yaml @@ -5,4 +5,7 @@ metadata: name: {{ template "descheduler.serviceAccountName" . }} labels: {{- include "descheduler.labels" . | nindent 4 }} +{{- if .Values.serviceAccount.annotations }} + annotations: {{ toYaml .Values.serviceAccount.annotations | nindent 4 }} +{{- end }} {{- end -}} diff --git a/charts/descheduler/values.yaml b/charts/descheduler/values.yaml index b3ad6281e..fbbc84352 100644 --- a/charts/descheduler/values.yaml +++ b/charts/descheduler/values.yaml @@ -94,3 +94,5 @@ serviceAccount: # The name of the ServiceAccount to use. # If not set and create is true, a name is generated using the fullname template name: + # Specifies custom annotations for the serviceAccount + annotations: {}