-
Notifications
You must be signed in to change notification settings - Fork 27
/
Makefile
34 lines (31 loc) · 1.19 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
# generate kalm-install.yaml
gen-install-file: prepare
# operator yaml files
kustomize build operator/config/default > kalm-install-operator.yaml
# append kalmoperatorconfig to trigger install of:
# - cert-manager
# - istio
# - kalm crd & rbac etc
# - kalm controller & dashboard
cat operator/config/samples/install_v1alpha1_kalmoperatorconfig.yaml > kalm-install-kalmoperatorconfig.yaml
# delete kalm crd, operator, controller, dashboard
delete: prepare
-kubectl delete -f kalm-install-kalmoperatorconfig.yaml
-kubectl delete -f kalm-install-operator.yaml
-kustomize build controller/config/default | kubectl delete -f -
# delete all kalm related things, including
#
# - istio
# - cert-manager
# - kalm operator and crds
# - kalm controller and crds
# - kalm dashboard
delete-all: delete
-kubectl delete -f operator/resources/istiocontrolplane.yaml
-kubectl delete -f operator/resources/cert-manager/cert-manager.yaml
-kustomize build operator/resources/istio | kubectl delete -f -
prepare:
ifeq (, $(shell which kustomize))
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
sudo mv ./kustomize /usr/local/bin/kustomize
endif