mirror of https://github.com/apache/superset.git
feat: added option to set pod annotations on init-db pod to Helm chart. (#17581)
Signed-off-by: David Talbot <davidtalbot100@gmail.com>
This commit is contained in:
parent
4e76637252
commit
95177d72b6
|
@ -22,7 +22,7 @@ maintainers:
|
||||||
- name: craig-rueda
|
- name: craig-rueda
|
||||||
email: craig@craigrueda.com
|
email: craig@craigrueda.com
|
||||||
url: https://github.com/craig-rueda
|
url: https://github.com/craig-rueda
|
||||||
version: 0.3.12
|
version: 0.4.0
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: postgresql
|
- name: postgresql
|
||||||
version: 10.2.0
|
version: 10.2.0
|
||||||
|
|
|
@ -26,6 +26,10 @@ spec:
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "superset.name" . }}-init-db
|
name: {{ template "superset.name" . }}-init-db
|
||||||
|
{{- if .Values.init.podAnnotations }}
|
||||||
|
annotations:
|
||||||
|
{{ toYaml .Values.init.podAnnotations | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: {{ .Values.runAsUser }}
|
runAsUser: {{ .Values.runAsUser }}
|
||||||
|
|
|
@ -335,6 +335,8 @@ init:
|
||||||
echo "Importing database connections.... "
|
echo "Importing database connections.... "
|
||||||
superset import_datasources -p {{ .Values.extraConfigMountPath }}/import_datasources.yaml
|
superset import_datasources -p {{ .Values.extraConfigMountPath }}/import_datasources.yaml
|
||||||
fi
|
fi
|
||||||
|
## Annotations to be added to init job pods
|
||||||
|
podAnnotations: {}
|
||||||
##
|
##
|
||||||
## Configuration values for the postgresql dependency.
|
## Configuration values for the postgresql dependency.
|
||||||
## ref: https://github.com/kubernetes/charts/blob/master/stable/postgresql/README.md
|
## ref: https://github.com/kubernetes/charts/blob/master/stable/postgresql/README.md
|
||||||
|
|
Loading…
Reference in New Issue