Skip to content

Commit

Permalink
Add switch to enable/disable debug mode
Browse files Browse the repository at this point in the history
As of now, it is only being used in the Operator
to enable debug logging but based on the variable
name I assume later it can be used not just to
controll the logger level

close CrunchyData#58

Signed-off-by: Alex Szakaly <[email protected]>
  • Loading branch information
alex1989hu committed Nov 19, 2021
1 parent e0d6196 commit 2263b17
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion helm/install/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: pgo
description: A Helm chart for Kubernetes
type: application
version: 0.2.1
version: 0.2.2
appVersion: 5.0.3
2 changes: 2 additions & 0 deletions helm/install/templates/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ spec:
- name: operator
image: "{{ .Values.image.image }}"
env:
{{- if .Values.debug.enabled }}
- name: CRUNCHY_DEBUG
value: "true"
{{- end }}
{{- range $image_name, $image_val := .Values.relatedImages }}
- name: RELATED_IMAGE_{{ $image_name | upper }}
value: "{{ $image_val.image }}"
Expand Down
4 changes: 4 additions & 0 deletions helm/install/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
---
## Switch to enable/disable debug on Postgres Operator
debug:
enabled: true

## Provide image repository and tag
image:
image: registry.developers.crunchydata.com/crunchydata/postgres-operator:ubi8-5.0.3-0
Expand Down

0 comments on commit 2263b17

Please sign in to comment.