Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(chart): expose logging configuration #905

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions charts/pgcat/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -32,6 +32,11 @@ spec:
{{- toYaml .Values.containerSecurityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: LOG_LEVEL
value: {{ .Values.configuration.general.log_level }}
- name: LOG_FORMAT
value: {{ .Values.configuration.general.log_format }}
ports:
- name: pgcat
containerPort: {{ .Values.configuration.general.port }}
6 changes: 6 additions & 0 deletions charts/pgcat/values.yaml
Original file line number Diff line number Diff line change
@@ -199,6 +199,12 @@ configuration:
# @param configuration.general.log_client_disconnections If we should log client disconnections
log_client_disconnections: false

# @param configuration.general.log_level Default log level
log_level: "INFO"

# @param configuration.general.log_format Log format, possible values: text, structured, debug
log_format: "text"

# TLS
# tls_certificate: "server.cert"
# tls_private_key: "server.key"