Skip to content

Commit

Permalink
feat(helm): add annotations on ServiceAccount (apache#21536)
Browse files Browse the repository at this point in the history
Co-authored-by: gforien <gforien.externe@bedrockstreaming.com>
  • Loading branch information
gforien and gforien committed Sep 21, 2022
1 parent c66205f commit 8ee34e1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion helm/superset/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions helm/superset/templates/service-account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
3 changes: 3 additions & 0 deletions helm/superset/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"properties": {
"create": {
"type": "boolean"
},
"annotations": {
"type": "object"
}
},
"required": [
Expand Down
1 change: 1 addition & 0 deletions helm/superset/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8ee34e1

Please sign in to comment.