Code Review
/
demo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
vFW CDS CNF CBA with native k8s profile upload
[demo.git]
/
heat
/
vFW_CNF_CDS
/
templates
/
Makefile
diff --git
a/heat/vFW_CNF_CDS/templates/Makefile
b/heat/vFW_CNF_CDS/templates/Makefile
index
579f724
..
38a4b38
100644
(file)
--- a/
heat/vFW_CNF_CDS/templates/Makefile
+++ b/
heat/vFW_CNF_CDS/templates/Makefile
@@
-1,20
+1,30
@@
-.PHONY: all clean helm base
+.PHONY: all clean helm base cba clean_all
+ONBOARDING_PACKAGE_NAME ?= vfw_k8s_demo
+CBA_NAME ?= CBA
+clean_all:
+ $(MAKE) clean
+ $(MAKE) all
-all: csar/ helm base
- cd csar/ && zip -r vfw_k8s_demo.zip .
- mv csar/vfw_k8s_demo.zip .
+#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 .
-helm:
csar
/
+helm:
package
/
make -C helm
make -C helm
-
cp helm/*.tgz csar
/
+
mv helm/*.tgz package
/
-base:
csar
/
- cp base/*
csar
/
+base:
package
/
+ cp base/*
package
/
-csar/:
- mkdir csar/
+cba: package/
+ cd cba/ && zip -r $(CBA_NAME).zip . -x pom.xml .idea/\* target/\*
+ mv cba/$(CBA_NAME).zip package/
+
+package/:
+ mkdir package/
clean:
clean:
- rm -rf
csar
/
- rm -f
vfw_k8s_demo
.zip
+ rm -rf
package
/
+ rm -f
$(ONBOARDING_PACKAGE_NAME)
.zip