Skip to content

Commit

Permalink
Fixed hot-reload for additional ConfigMaps
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianeicher committed May 5, 2023
1 parent 92d5244 commit 079e4cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charts/generic-service/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ spec:
{{- end }}
{{- range .Values.additionalConfigs }}
- name: config-{{ tpl . $ }}
subPath: data.yaml
mountPath: /config/{{ tpl . $ }}.yaml
# Mount entire directory instead of just file to enable hot-reload
mountPath: '/additional-configs/{{ tpl . $ }}'
{{- end }}
{{- range $name, $secret := .Values.secrets }}
- name: {{ tpl $name $ }}
Expand Down Expand Up @@ -378,7 +378,7 @@ spec:

{{- if or .Values.config .Values.additionalConfigs }}
- name: CONFIG_FILE
value: '{{ if .Values.config }}{{ .Values.configMountPath }}{{ end }}{{ range .Values.additionalConfigs }}:/config/{{ tpl . $ }}.yaml{{ end }}'
value: '{{ if .Values.config }}{{ .Values.configMountPath }}{{ end }}{{ range .Values.additionalConfigs }}:/additional-configs/{{ tpl . $ }}/data.yaml{{ end }}'
{{- end }}

{{- range $key, $val := .Values.envFrom }}
Expand Down

0 comments on commit 079e4cd

Please sign in to comment.