From 317d9db7ae66e20d6e8143fa3424a4daf2259b98 Mon Sep 17 00:00:00 2001 From: "Jonathan S. Katz" Date: Wed, 24 Nov 2021 21:35:25 -0500 Subject: [PATCH] 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 --- helm/install/templates/manager.yaml | 2 +- helm/install/values.yaml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/helm/install/templates/manager.yaml b/helm/install/templates/manager.yaml index 3877b7b9..3ca42974 100644 --- a/helm/install/templates/manager.yaml +++ b/helm/install/templates/manager.yaml @@ -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 }}" diff --git a/helm/install/values.yaml b/helm/install/values.yaml index bcabc206..7be748cd 100644 --- a/helm/install/values.yaml +++ b/helm/install/values.yaml @@ -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