From fade7e83f36383ef38dab9b0eeb710b5c3cb240e Mon Sep 17 00:00:00 2001 From: Calin Don Date: Wed, 22 Dec 2021 23:04:40 +0200 Subject: [PATCH] Allow specifying custom helm app version --- makelib/helm.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/makelib/helm.mk b/makelib/helm.mk index 07e3bc798..79eefa475 100644 --- a/makelib/helm.mk +++ b/makelib/helm.mk @@ -40,6 +40,7 @@ export HELM_HOME # remove the leading `v` for helm chart versions HELM_CHART_VERSION := $(VERSION:v%=%) +HELM_APP_VERSION ?= $(VERSION) # ==================================================================================== # Tools install targets @@ -67,7 +68,7 @@ define helm.chart @cp -a $(abspath $(HELM_CHARTS_DIR)/$(1)) $(HELM_CHARTS_WORK_DIR)/$(1) .helm.package.run.$(1): $(HELM_OUTPUT_DIR) $(HELM_HOME) @$(INFO) helm package $(1) $(HELM_CHART_VERSION) - @$(HELM) package --version $(HELM_CHART_VERSION) --app-version $(HELM_CHART_VERSION) -d $(HELM_OUTPUT_DIR) $(HELM_CHARTS_WORK_DIR)/$(1) + @$(HELM) package --version $(HELM_CHART_VERSION) --app-version $(HELM_APP_VERSION) -d $(HELM_OUTPUT_DIR) $(HELM_CHARTS_WORK_DIR)/$(1) @$(OK) helm package $(1) $(HELM_CHART_VERSION) .helm.package.done.$(1): ; @: .helm.package.$(1):