From 5d28579742e79a4b003fdd88c00592362a9f15d2 Mon Sep 17 00:00:00 2001 From: ChrisVanLawAtFanatics <149394990+ChrisVanLawAtFanatics@users.noreply.github.com> Date: Wed, 7 Feb 2024 00:02:20 -0500 Subject: [PATCH] #1967: add serviceAccountAnnotations (#1968) add serviceAccountAnnotations --- helm/operator/templates/operator-serviceaccount.yaml | 4 ++++ helm/operator/values.yaml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/helm/operator/templates/operator-serviceaccount.yaml b/helm/operator/templates/operator-serviceaccount.yaml index 7b644248028..8ae899da6e1 100644 --- a/helm/operator/templates/operator-serviceaccount.yaml +++ b/helm/operator/templates/operator-serviceaccount.yaml @@ -4,3 +4,7 @@ metadata: name: minio-operator namespace: {{ .Release.Namespace }} labels: {{- include "minio-operator.labels" . | nindent 4 }} + {{- with .Values.operator.serviceAccountAnnotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} diff --git a/helm/operator/values.yaml b/helm/operator/values.yaml index f895a986703..fc3ac0bced7 100644 --- a/helm/operator/values.yaml +++ b/helm/operator/values.yaml @@ -27,6 +27,8 @@ operator: env: - name: OPERATOR_STS_ENABLED value: "on" + # An array of additional annotations to be applied to the operator service account + serviceAccountAnnotations: [] ### # Specify the Operator container image to use for the deployment. # ``image.tag``