aboutsummaryrefslogtreecommitdiffstats
path: root/heat/vFW_CNF_CDS/templates/Makefile
diff options
context:
space:
mode:
authorLukasz Rajewski <lukasz.rajewski@orange.com>2020-11-05 22:55:13 +0100
committerMorgan Richomme <morgan.richomme@orange.com>2020-11-09 08:11:05 +0000
commit522c69de81b355646789a340f061313e3598f5b9 (patch)
tree0764f05ce844042489002a951930a68bd053b155 /heat/vFW_CNF_CDS/templates/Makefile
parentc3987b0edac5541dba246a746b0dc89ee7603f47 (diff)
vFW CNF CDS scripts update for native Helm support
vFW CNF CDS scripts update for native Helm support Change-Id: I34a1cc8dfb18e512edb6e2786984b683c34815e6 Issue-ID: INT-1658 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Diffstat (limited to 'heat/vFW_CNF_CDS/templates/Makefile')
-rw-r--r--heat/vFW_CNF_CDS/templates/Makefile31
1 files changed, 22 insertions, 9 deletions
diff --git a/heat/vFW_CNF_CDS/templates/Makefile b/heat/vFW_CNF_CDS/templates/Makefile
index 38a4b389..7ca4ac04 100644
--- a/heat/vFW_CNF_CDS/templates/Makefile
+++ b/heat/vFW_CNF_CDS/templates/Makefile
@@ -1,5 +1,6 @@
.PHONY: all clean helm base cba clean_all
-ONBOARDING_PACKAGE_NAME ?= vfw_k8s_demo
+DUMMY_ONBOARDING_PACKAGE_NAME ?= vfw_k8s_demo
+NATIVE_ONBOARDING_PACKAGE_NAME ?= native_vfw_k8s_demo
CBA_NAME ?= CBA
clean_all:
@@ -8,23 +9,35 @@ clean_all:
#Can't use .csar extension or SDC will panic
all: package/ helm base cba
- cd package/ && zip -r $(ONBOARDING_PACKAGE_NAME).zip .
- mv package/$(ONBOARDING_PACKAGE_NAME).zip .
+ cd package_dummy/ && zip -r $(DUMMY_ONBOARDING_PACKAGE_NAME).zip .
+ cd package_native/ && zip -r $(NATIVE_ONBOARDING_PACKAGE_NAME).zip .
+ mv package_dummy/$(DUMMY_ONBOARDING_PACKAGE_NAME).zip .
+ mv package_native/$(NATIVE_ONBOARDING_PACKAGE_NAME).zip .
helm: package/
make -C helm
- mv helm/*.tgz package/
+ mv helm/helm_*.tgz package_native/
+ mv helm/*.tgz package_dummy/
base: package/
- cp base/* package/
+ cp base_dummy/* package_dummy/
+ cp base_native/* package_native/
cba: package/
+ cp -r cba cba_dummy
+ sed -i 's/"helm_/"/g' cba_dummy/Definitions/vFW_CNF_CDS.json
+ cd cba_dummy/ && zip -r $(CBA_NAME).zip . -x pom.xml .idea/\* target/\*
cd cba/ && zip -r $(CBA_NAME).zip . -x pom.xml .idea/\* target/\*
- mv cba/$(CBA_NAME).zip package/
+ mv cba/$(CBA_NAME).zip package_native/
+ mv cba_dummy/$(CBA_NAME).zip package_dummy/
package/:
- mkdir package/
+ mkdir package_dummy/
+ mkdir package_native/
clean:
- rm -rf package/
- rm -f $(ONBOARDING_PACKAGE_NAME).zip
+ rm -rf package_dummy/
+ rm -rf package_native/
+ rm -rf cba_dummy
+ rm -f $(DUMMY_ONBOARDING_PACKAGE_NAME).zip
+ rm -f $(NATIVE_ONBOARDING_PACKAGE_NAME).zip