[DCAE] Make sure to update index.yaml after pushing all components 78/122978/3
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Thu, 29 Jul 2021 20:49:54 +0000 (22:49 +0200)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 3 Aug 2021 19:45:51 +0000 (19:45 +0000)
As helm may cache the index.yaml from the server let's force it to
update it after we push all dcae services to be sure that the
building process of umbrella chart is able to find them.

Issue-ID: OOM-1
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Change-Id: Ie9717bc7c57176ade912bf35f48ac97f13f3e338

kubernetes/dcaegen2-services/components/Makefile

index 98dfb97..284f99d 100644 (file)
@@ -26,7 +26,7 @@ HELM_CHARTS := $(filter-out $(EXCLUDES), $(sort $(patsubst %/.,%,$(wildcard */.)
 
 .PHONY: $(EXCLUDES) $(HELM_CHARTS)
 
-all: $(HELM_CHARTS)
+all: $(HELM_CHARTS) helm-repo-update
 
 $(HELM_CHARTS):
        @echo "\n[$@]"
@@ -50,5 +50,11 @@ clean:
        @rm -f */requirements.lock
        @rm -f *tgz */charts/*tgz
        @rm -rf $(PACKAGE_DIR)
+
+helm-repo-update:
+ifeq "$(findstring v3,$(HELM_VER))" "v3"
+       @$(HELM_BIN) repo update
+endif
+
 %:
        @: