Merge branch 'helm_debug' into 'master'

add --debug possibility to helm deploy

See merge request pub/make-deploy!5
This commit is contained in:
Thomas Schneider 2023-09-15 08:45:44 +02:00
commit c6e09b7825
1 changed files with 17 additions and 2 deletions

19
helm.mk
View File

@ -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