mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-08 21:31:24 +02:00
Introduce ENABLE_JSON_LOGGING env variable (#1158)
This commit is contained in:
@@ -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" . }}
|
||||
|
||||
@@ -15,6 +15,9 @@ podLabels: {}
|
||||
|
||||
configTarget: "ConfigMap"
|
||||
|
||||
# JSON logging format
|
||||
enableJsonLogging: false
|
||||
|
||||
# general configuration parameters
|
||||
configGeneral:
|
||||
# choose if deployment creates/updates CRDs with OpenAPIV3Validation
|
||||
|
||||
Reference in New Issue
Block a user