add --debug possibility to helm deploy
This commit is contained in:
parent
47c0d2f4b1
commit
bb5a388c4f
17
helm.mk
17
helm.mk
|
@ -17,6 +17,21 @@ 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 --------------------"
|
||||
@- echo " "
|
||||
|
@ -28,7 +43,7 @@ endif
|
|||
|
||||
@ envsubst < $(HELM_VALUES_FILE) | helm upgrade $(HELM_CHART_NAME) $(HELM_CHART_PATH) -n $(K8S_NAMESPACE) --install --wait --values -
|
||||
|
||||
|
||||
endif
|
||||
|
||||
|
||||
pull-helm:
|
||||
|
|
Loading…
Reference in New Issue