Skip to content

Commit 2b260ab

Browse files
feat(chart): expose logging configuration
1 parent f8e2fcd commit 2b260ab

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

charts/pgcat/templates/deployment.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ spec:
3232
{{- toYaml .Values.containerSecurityContext | nindent 12 }}
3333
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
3434
imagePullPolicy: {{ .Values.image.pullPolicy }}
35+
env:
36+
- name: LOG_LEVEL
37+
value: {{ .Values.configuration.general.log_level }}
38+
- name: LOG_FORMAT
39+
value: {{ .Values.configuration.general.log_format }}
3540
ports:
3641
- name: pgcat
3742
containerPort: {{ .Values.configuration.general.port }}

charts/pgcat/values.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,12 @@ configuration:
199199
# @param configuration.general.log_client_disconnections If we should log client disconnections
200200
log_client_disconnections: false
201201

202+
# @param configuration.general.log_level Default log level
203+
log_level: "INFO"
204+
205+
# @param configuration.general.log_format Log format, possible values: text, structured, debug
206+
log_format: "text"
207+
202208
# TLS
203209
# tls_certificate: "server.cert"
204210
# tls_private_key: "server.key"

0 commit comments

Comments
 (0)