generated from validatedpatterns/multicloud-gitops
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Makefile
40 lines (27 loc) · 1.63 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
CHART_OPTS=-f values-secret.yaml.template -f values-global.yaml -f values-hub.yaml --set global.targetRevision=main --set global.valuesDirectoryURL="https://github.com/hybrid-cloud-patterns/ansible-edge-gitops/raw/main/" --set global.pattern="$(NAME)" --set global.namespace="$(NAME)" --set global.hubClusterDomain=example.com --set global.localClusterDomain=local.example.com
CHARTS=$(shell find . -type f -iname 'Chart.yaml' -exec dirname "{}" \; | grep -v examples | sed -e 's/.\///')
.PHONY: default
default: help
help:
@make -f common/Makefile MAKEFILE_LIST="Makefile common/Makefile" help
%:
make -f common/Makefile $*
install upgrade deploy: operator-deploy post-install ## Install or upgrade the pattern via the operator
echo "Installed/Upgraded"
#portworx-install portworx-upgrade portworx-deploy: ## Install with portworx instead
# EXTRA_HELM_OPTS='-f values-portworx.yaml' make install
post-install: ## Post-install tasks - load-secrets
make load-secrets
echo "Post-deploy complete"
deploy-kubevirt-worker: ## Deploy the metal node worker (from workstation). This is normally done in-cluster
./scripts/deploy_kubevirt_worker.sh
configure-controller: ## Configure AAP operator (from workstation). This is normally done in-cluster
ansible-playbook ./scripts/ansible_load_controller.sh -e "aeg_project_repo=$(TARGET_REPO) aeg_project_branch=$(TARGET_BRANCH)"
test: ## Run tests
@set -e; for i in $(CHARTS); do echo "$${i}"; helm template "$${i}"; done
echo Tests SUCCESSFUL
#portworx-test:
# EXTRA_HELM_OPTS='-f values-portworx.yaml' make test
update-tests: ## Update test results
./scripts/update-tests.sh $(CHART_OPTS)
.phony: install test