From 196644683ce0a7ff53e9a88638cf92f81b54c3cd Mon Sep 17 00:00:00 2001 From: Om Aximani <75031769+OmAximani0@users.noreply.github.com> Date: Mon, 19 Dec 2022 22:38:30 +0530 Subject: [PATCH] Added 'debug' flag in values (#143) * Added 'debug' flag in values - Helps to set environment on debug mode - Can fix #142 * Addressed changes --- charts/helm-dashboard/templates/deployment.yaml | 2 ++ charts/helm-dashboard/values.yaml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/charts/helm-dashboard/templates/deployment.yaml b/charts/helm-dashboard/templates/deployment.yaml index 8a86623..5108381 100644 --- a/charts/helm-dashboard/templates/deployment.yaml +++ b/charts/helm-dashboard/templates/deployment.yaml @@ -40,6 +40,8 @@ spec: value: /opt/dashboard/helm/config - name: HELM_DATA_HOME value: /opt/dashboard/helm/data + - name: DEBUG + value: {{- ternary " 1" "" .Values.debug }} ports: - name: http containerPort: 8080 diff --git a/charts/helm-dashboard/values.yaml b/charts/helm-dashboard/values.yaml index 168fc76..fac4561 100644 --- a/charts/helm-dashboard/values.yaml +++ b/charts/helm-dashboard/values.yaml @@ -1,5 +1,8 @@ replicaCount: 1 +# Flag for setting environment to debug mode +debug: false + image: repository: komodorio/helm-dashboard pullPolicy: IfNotPresent