fix: adding extraConfig to worker deployment #20828 (#20829)

* #20828 adding extraConfig to worker deployment

* fixed missing condition in volume declaration

* bumped chart version
This commit is contained in:
Christian Dreier 2022-07-26 00:07:23 +02:00 committed by GitHub
parent 672266ca58
commit 3f943ffadb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 4 deletions

View File

@ -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.6.5 version: 0.6.6
dependencies: dependencies:
- name: postgresql - name: postgresql
version: 11.1.22 version: 11.1.22

View File

@ -101,6 +101,11 @@ spec:
- name: superset-config - name: superset-config
mountPath: {{ .Values.configMountPath | quote }} mountPath: {{ .Values.configMountPath | quote }}
readOnly: true readOnly: true
{{- if .Values.extraConfigs }}
- name: superset-extra-config
mountPath: {{ .Values.extraConfigMountPath | quote }}
readOnly: true
{{- end }}
{{- with .Values.extraVolumeMounts }} {{- with .Values.extraVolumeMounts }}
{{- tpl (toYaml .) $ | nindent 12 -}} {{- tpl (toYaml .) $ | nindent 12 -}}
{{- end }} {{- end }}
@ -130,6 +135,11 @@ spec:
- name: superset-config - name: superset-config
secret: secret:
secretName: {{ tpl .Values.configFromSecret . }} secretName: {{ tpl .Values.configFromSecret . }}
{{- with .Values.extraVolumes }} {{- if .Values.extraConfigs }}
{{- tpl (toYaml .) $ | nindent 8 -}} - name: superset-extra-config
{{- end }} configMap:
name: {{ template "superset.fullname" . }}-extra-config
{{- end }}
{{- with .Values.extraVolumes }}
{{- tpl (toYaml .) $ | nindent 8 -}}
{{- end }}