diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2020-10-02 13:59:04 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-10-02 13:59:04 +0000 |
commit | 4c9bb49d34b8dbadadc4c99ca39e213241fed4cd (patch) | |
tree | 51dc4662d87d5f3ee14be845bab2f13e3be078de /kubernetes/oof/components/oof-has/Makefile | |
parent | fbda0e7370d186d4e8d3c5a36b72d415cee49b18 (diff) | |
parent | 5b7d2578d00e5116e3657433054c118f75b0386e (diff) |
Merge "[OOF] Use helm-push plugin"
Diffstat (limited to 'kubernetes/oof/components/oof-has/Makefile')
-rw-r--r-- | kubernetes/oof/components/oof-has/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kubernetes/oof/components/oof-has/Makefile b/kubernetes/oof/components/oof-has/Makefile index 52df18adad..48cebe96e7 100644 --- a/kubernetes/oof/components/oof-has/Makefile +++ b/kubernetes/oof/components/oof-has/Makefile @@ -19,6 +19,7 @@ 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) @@ -39,7 +40,11 @@ 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: |