Skip to content

Commit 317d9db

Browse files
Jonathan S. Katzalex1989hu
authored andcommitted
Allow for "debug" log toggling in Helm installer
This adds an attribute for debug logging (debug) to toggle debug level logging from Helm. Co-authored-by: Alex Szakaly <[email protected]>
1 parent 4f123b2 commit 317d9db

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

helm/install/templates/manager.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ spec:
2020
image: "{{ .Values.image.image }}"
2121
env:
2222
- name: CRUNCHY_DEBUG
23-
value: "true"
23+
value: {{ if eq .Values.debug false }}"false"{{- else }}"true"{{- end }}
2424
{{- range $image_name, $image_val := .Values.relatedImages }}
2525
- name: RELATED_IMAGE_{{ $image_name | upper }}
2626
value: "{{ $image_val.image }}"

helm/install/values.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ relatedImages:
2121

2222
## Install in default or single namespace mode
2323
singleNamespace: false
24+
25+
# debug allows you to enable or disable the "debug" level of logging.
26+
# Defaults to the value below.
27+
# debug: true

0 commit comments

Comments
 (0)