Add TEST_MODE to helm deployment for debug output
This commit is contained in:
parent
ca805d8231
commit
f421740543
7
helm.mk
7
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
|
||||
|
|
Loading…
Reference in New Issue