Skip to content

Commit

Permalink
Allow for "debug" log toggling in Helm installer
Browse files Browse the repository at this point in the history
This adds an attribute for debug logging (debug) to toggle
debug level logging from Helm.

Co-authored-by: Alex Szakaly <alex.szakaly@gmail.com>
  • Loading branch information
2 people authored and jkatz committed Nov 25, 2021
1 parent 4f123b2 commit 317d9db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion helm/install/templates/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
image: "{{ .Values.image.image }}"
env:
- name: CRUNCHY_DEBUG
value: "true"
value: {{ if eq .Values.debug false }}"false"{{- else }}"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
Expand Up @@ -21,3 +21,7 @@ relatedImages:

## Install in default or single namespace mode
singleNamespace: false

# debug allows you to enable or disable the "debug" level of logging.
# Defaults to the value below.
# debug: true

0 comments on commit 317d9db

Please sign in to comment.