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``