From bb5a388c4f4328dcbf792640654fdec633c5140a Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 15 Sep 2023 08:44:44 +0200 Subject: [PATCH] add --debug possibility to helm deploy --- helm.mk | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/helm.mk b/helm.mk index a50495e..963e468 100644 --- a/helm.mk +++ b/helm.mk @@ -16,6 +16,21 @@ endif ifdef NAMESPACE K8S_NAMESPACE = $(NAMESPACE) endif + +ifdef DEBUG_MODE + + @- echo "\n### deploying helm chart with --debug flag" + @- echo "-- DEBUG DEPLOYMENT --------------------" + @- echo " " + @- echo "Namespace: $(K8S_NAMESPACE)" + @- echo "Helm Chart: $(HELM_CHART_PATH)" + @- echo "Values File: $(HELM_VALUES_FILE)" + @- echo " " + @- echo "----------------------------------" + + @ envsubst < $(HELM_VALUES_FILE) | helm upgrade $(HELM_CHART_NAME) $(HELM_CHART_PATH) -n $(K8S_NAMESPACE) --install --debug --wait --values - + +else @- echo "\n### deploying helm chart" @- echo "-- DEPLOYMENT --------------------" @@ -28,8 +43,8 @@ endif @ envsubst < $(HELM_VALUES_FILE) | helm upgrade $(HELM_CHART_NAME) $(HELM_CHART_PATH) -n $(K8S_NAMESPACE) --install --wait --values - - +endif pull-helm: -# nop +# nop \ No newline at end of file