From f4217405432848ab6062046dce78999048e2449b Mon Sep 17 00:00:00 2001 From: Florian Zink Date: Tue, 7 Mar 2023 16:55:15 +0100 Subject: [PATCH] Add TEST_MODE to helm deployment for debug output --- helm.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/helm.mk b/helm.mk index e4f08da..777ef55 100644 --- a/helm.mk +++ b/helm.mk @@ -8,6 +8,11 @@ start-helm: @- echo "\n### setting kubernetes context to $(K8S_CONTEXT)" @ kubectl config use-context $(K8S_CONTEXT) +ifdef TEST_MODE + @- echo "Testing chart with 'helm template --debug'" + @ envsubst < ${HELM_VALUES_FILE} | helm template ${HELM_CHART_NAME} ${HELM_CHART_PATH} --debug --values - +endif + @- echo "\n### deploying helm chart" @- echo "-- DEPLOYMENT --------------------" @- echo " " @@ -20,5 +25,7 @@ start-helm: @ envsubst < $(HELM_VALUES_FILE) | helm upgrade $(HELM_CHART_NAME) $(HELM_CHART_PATH) -n $(NAMESPACE) --install --wait --values - + + pull-helm: # nop