Skip to content

Commit

Permalink
feat: added option to set pod annotations on init-db pod to Helm char…
Browse files Browse the repository at this point in the history
…t. (#17581)

Signed-off-by: David Talbot <davidtalbot100@gmail.com>
  • Loading branch information
caviliar authored Nov 30, 2021
1 parent 4e76637 commit 95177d7
Show file tree
Hide file tree
Showing 3 changed files with 7 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.3.12
version: 0.4.0
dependencies:
- name: postgresql
version: 10.2.0
Expand Down
4 changes: 4 additions & 0 deletions helm/superset/templates/init-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ spec:
template:
metadata:
name: {{ template "superset.name" . }}-init-db
{{- if .Values.init.podAnnotations }}
annotations:
{{ toYaml .Values.init.podAnnotations | nindent 8 }}
{{- end }}
spec:
securityContext:
runAsUser: {{ .Values.runAsUser }}
Expand Down
2 changes: 2 additions & 0 deletions helm/superset/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,8 @@ init:
echo "Importing database connections.... "
superset import_datasources -p {{ .Values.extraConfigMountPath }}/import_datasources.yaml
fi
## Annotations to be added to init job pods
podAnnotations: {}
##
## Configuration values for the postgresql dependency.
## ref: https://github.com/kubernetes/charts/blob/master/stable/postgresql/README.md
Expand Down

0 comments on commit 95177d7

Please sign in to comment.