Add TEST_MODE to helm deployment for debug output

This commit is contained in:
Florian Zink 2023-03-07 16:55:15 +01:00
parent ca805d8231
commit f421740543
1 changed files with 7 additions and 0 deletions

View File

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