helm: handle empty persistence.config values

pull/363/head
Roberto Santalla 2 years ago committed by Roberto Santalla
parent 4bb0d41681
commit d33dcdfa66
No known key found for this signature in database
GPG Key ID: EECD0A1AE7884E7C

@ -54,11 +54,15 @@ spec:
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
{{- with .Values.persistence.config }}
- mountPath: /opt/scrutiny/config
name: config
{{- end }}
volumes:
{{- with .Values.persistence.config }}
- name: config
{{- .Values.persistence.config | toYaml | nindent 10 }}
{{- . | toYaml | nindent 10 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}

@ -6,7 +6,7 @@ env:
SCRUTINY_WEB_INFLUXDB_HOST: scrutiny-influxdb2
persistence:
config:
config: {}
# Volume spec, without `name`.
#emptyDir: {}

Loading…
Cancel
Save