Skip to content

Commit 2263b17

Browse files
committed
Add switch to enable/disable debug mode
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]>
1 parent e0d6196 commit 2263b17

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

helm/install/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ apiVersion: v2
22
name: pgo
33
description: A Helm chart for Kubernetes
44
type: application
5-
version: 0.2.1
5+
version: 0.2.2
66
appVersion: 5.0.3

helm/install/templates/manager.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ spec:
1919
- name: operator
2020
image: "{{ .Values.image.image }}"
2121
env:
22+
{{- if .Values.debug.enabled }}
2223
- name: CRUNCHY_DEBUG
2324
value: "true"
25+
{{- end }}
2426
{{- range $image_name, $image_val := .Values.relatedImages }}
2527
- name: RELATED_IMAGE_{{ $image_name | upper }}
2628
value: "{{ $image_val.image }}"

helm/install/values.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
---
2+
## Switch to enable/disable debug on Postgres Operator
3+
debug:
4+
enabled: true
5+
26
## Provide image repository and tag
37
image:
48
image: registry.developers.crunchydata.com/crunchydata/postgres-operator:ubi8-5.0.3-0

0 commit comments

Comments
 (0)