From 8ee34e175d9c2ee2d77ca9eb7406f8d06e790c7d Mon Sep 17 00:00:00 2001 From: Gabriel Forien Date: Wed, 21 Sep 2022 19:39:35 +0200 Subject: [PATCH] feat(helm): add annotations on ServiceAccount (#21536) Co-authored-by: gforien --- helm/superset/Chart.yaml | 2 +- helm/superset/templates/service-account.yaml | 3 +++ helm/superset/values.schema.json | 3 +++ helm/superset/values.yaml | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/helm/superset/Chart.yaml b/helm/superset/Chart.yaml index 7e8c6c07d..10e4fadd4 100644 --- a/helm/superset/Chart.yaml +++ b/helm/superset/Chart.yaml @@ -22,7 +22,7 @@ maintainers: - name: craig-rueda email: craig@craigrueda.com url: https://github.com/craig-rueda -version: 0.7.2 +version: 0.7.3 dependencies: - name: postgresql version: 11.1.22 diff --git a/helm/superset/templates/service-account.yaml b/helm/superset/templates/service-account.yaml index 680b13737..8d1171fad 100755 --- a/helm/superset/templates/service-account.yaml +++ b/helm/superset/templates/service-account.yaml @@ -28,4 +28,7 @@ metadata: kubernetes.io/cluster-service: "true" {{- end }} addonmanager.kubernetes.io/mode: Reconcile + {{- if .Values.serviceAccount.annotations }} + annotations: {{- toYaml .Values.serviceAccount.annotations | nindent 4 }} + {{- end }} {{- end -}} diff --git a/helm/superset/values.schema.json b/helm/superset/values.schema.json index 996c88b8e..d554cbcc3 100644 --- a/helm/superset/values.schema.json +++ b/helm/superset/values.schema.json @@ -12,6 +12,9 @@ "properties": { "create": { "type": "boolean" + }, + "annotations": { + "type": "object" } }, "required": [ diff --git a/helm/superset/values.yaml b/helm/superset/values.yaml index 992a950b6..df9333644 100644 --- a/helm/superset/values.yaml +++ b/helm/superset/values.yaml @@ -27,6 +27,7 @@ runAsUser: 0 # serviceAccountName: superset serviceAccount: create: false + annotations: {} # Install additional packages and do any other bootstrap configuration in this script # For production clusters it's recommended to build own image with this step done in CI