diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2020-09-25 11:05:08 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-09-25 11:05:08 +0000 |
commit | 4e817ee1c3ad726fe4e3bdf72aca1ba43eaba9cf (patch) | |
tree | 6f58d4ee17027a1dacb14cd522aac4b96601e1d5 /kubernetes/sdc/Makefile | |
parent | 80892b4f7346b127873de456c28de5094e867b87 (diff) | |
parent | 30801003a990bedda36b4f8aecd8ccc55eca5995 (diff) |
Merge "[SDC] Use helm-push plugin"
Diffstat (limited to 'kubernetes/sdc/Makefile')
-rw-r--r-- | kubernetes/sdc/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kubernetes/sdc/Makefile b/kubernetes/sdc/Makefile index f2670c552d..3dab31fad0 100644 --- a/kubernetes/sdc/Makefile +++ b/kubernetes/sdc/Makefile @@ -20,6 +20,8 @@ SECRET_DIR := $(OUTPUT_DIR)/secrets EXCLUDES := dist resources templates charts docker HELM_CHARTS := $(filter-out $(EXCLUDES), $(sort $(patsubst %/.,%,$(wildcard */.)))) +HELM_VER := $(shell helm version --template "{{.Version}}") + .PHONY: $(EXCLUDES) $(HELM_CHARTS) all: $(HELM_CHARTS) @@ -39,7 +41,12 @@ lint-%: dep-% package-%: lint-% @mkdir -p $(PACKAGE_DIR) +ifeq "$(findstring v3,$(HELM_VER))" "v3" + @if [ -f $*/Chart.yaml ]; then PACKAGE_NAME=$$(helm package -d $(PACKAGE_DIR) $* | cut -d":" -f2) && helm push -f $$PACKAGE_NAME local; fi +else @if [ -f $*/Chart.yaml ]; then helm package -d $(PACKAGE_DIR) $*; fi +endif + @helm repo index $(PACKAGE_DIR) clean: |