Code Review
/
oom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Give user link to submodule instructions
[oom.git]
/
kubernetes
/
Makefile
diff --git
a/kubernetes/Makefile
b/kubernetes/Makefile
index
7ba5ba9
..
3f41c3c
100644
(file)
--- a/
kubernetes/Makefile
+++ b/
kubernetes/Makefile
@@
-20,12
+20,13
@@
OUTPUT_DIR := $(ROOT_DIR)/dist
PACKAGE_DIR := $(OUTPUT_DIR)/packages
SECRET_DIR := $(OUTPUT_DIR)/secrets
PACKAGE_DIR := $(OUTPUT_DIR)/packages
SECRET_DIR := $(OUTPUT_DIR)/secrets
-EXCLUDES := config oneclick readiness test dist helm $(PARENT_CHART) dcae
+SUBMODS := robot aai
+EXCLUDES := config oneclick readiness test dist helm $(PARENT_CHART) dcae $(SUBMODS)
HELM_CHARTS := $(filter-out $(EXCLUDES), $(patsubst %/.,%,$(wildcard */.))) $(PARENT_CHART)
HELM_CHARTS := $(filter-out $(EXCLUDES), $(patsubst %/.,%,$(wildcard */.))) $(PARENT_CHART)
-.PHONY: $(EXCLUDES) $(HELM_CHARTS)
+.PHONY: $(EXCLUDES) $(HELM_CHARTS)
$(SUBMODS)
-all: $(COMMON_CHARTS_DIR) $(
HELM_CHARTS)
+all: $(COMMON_CHARTS_DIR) $(
SUBMODS) $(HELM_CHARTS) plugins
$(COMMON_CHARTS):
@echo "\n[$@]"
$(COMMON_CHARTS):
@echo "\n[$@]"
@@
-35,6
+36,18
@@
$(HELM_CHARTS):
@echo "\n[$@]"
@make package-$@
@echo "\n[$@]"
@make package-$@
+$(SUBMODS):
+ @echo "\n[$@]"
+ @make submod-$@
+ @make package-$@
+
+submod-%:
+ @make $*/requirements.yaml
+
+%/requirements.yaml:
+ $(error Submodule $* needs to be retrieved from gerrit. See https://wiki.onap.org/display/DW/OOM+-+Development+workflow+after+code+transfer+to+tech+teams ); fi
+
+
make-%:
@if [ -f $*/Makefile ]; then make -C $*; fi
make-%:
@if [ -f $*/Makefile ]; then make -C $*; fi
@@
-47,17
+60,27
@@
lint-%: dep-%
package-%: lint-%
@mkdir -p $(PACKAGE_DIR)
@if [ -f $*/Chart.yaml ]; then helm package -d $(PACKAGE_DIR) $*; fi
package-%: lint-%
@mkdir -p $(PACKAGE_DIR)
@if [ -f $*/Chart.yaml ]; then helm package -d $(PACKAGE_DIR) $*; fi
+ @helm repo index $(PACKAGE_DIR)
clean:
@rm -f */requirements.lock
clean:
@rm -f */requirements.lock
- @
rm -f *tgz */charts/*tgz
- @rm -rf $(PACKAGE_DIR)
+ @
find . -type f -name '*.tgz' -delete
+ @rm -rf $(PACKAGE_DIR)
/*
-# start up a local helm repo to serve up
+# publish helm plugins via distrubtion directory
+plugins:
+ @cp -R helm $(PACKAGE_DIR)/
+
+# start up a local helm repo to serve up helm chart packages
repo:
@mkdir -p $(PACKAGE_DIR)
@helm serve --repo-path $(PACKAGE_DIR) &
@helm repo index $(PACKAGE_DIR)
@helm repo add local http://127.0.0.1:8879
repo:
@mkdir -p $(PACKAGE_DIR)
@helm serve --repo-path $(PACKAGE_DIR) &
@helm repo index $(PACKAGE_DIR)
@helm repo add local http://127.0.0.1:8879
+
+# stop local helm repo
+repo-stop:
+ @pkill helm
+ @helm repo remove local
%:
@:
%:
@: