Introduce ENABLE_JSON_LOGGING env variable (#1158)

This commit is contained in:
Alex Stockinger
2020-10-08 15:32:15 +02:00
committed by GitHub
parent 38e15183a2
commit 692c721854
6 changed files with 22 additions and 1 deletions
@@ -37,6 +37,10 @@ spec:
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
{{- if .Values.enableJsonLogging }}
- name: ENABLE_JSON_LOGGING
value: "true"
{{- end }}
{{- if eq .Values.configTarget "ConfigMap" }}
- name: CONFIG_MAP_NAME
value: {{ template "postgres-operator.fullname" . }}
+3
View File
@@ -15,6 +15,9 @@ podLabels: {}
configTarget: "ConfigMap"
# JSON logging format
enableJsonLogging: false
# general configuration parameters
configGeneral:
# choose if deployment creates/updates CRDs with OpenAPIV3Validation