forked from theopenconversationkit/tock-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
23 lines (17 loc) · 834 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
HELM_NS_OPTS ?= $(shell $(HELM_INSTALL) && echo --create-namespace)
HELM_OPTIONS ?=
HELM_INSTALL ?= false
HELM_UPGRADE ?= $(shell $(HELM_INSTALL) || echo diff) upgrade --install $(shell $(HELM_INSTALL) || echo -C 5)
TOCK_NAMESPACE ?= tock
MONGODB_OPERATOR_VERSION ?= master
mongodb-kubernetes-operator:
git clone https://github.com/mongodb/mongodb-kubernetes-operator.git
deploy-mongodb-operator: mongodb-kubernetes-operator
kubectl apply -k mongodb-kubernetes-operator/config/rbac --namespace operators
kubectl apply -f mongodb-kubernetes-operator/config/crd/bases/mongodbcommunity.mongodb.com_mongodbcommunity.yaml
kubectl apply -f mongodb-operator/
deploy-tock:
# Deploy tock
helm $(HELM_UPGRADE) tock charts/tock $(HELM_NS_OPTS) --namespace $(TOCK_NAMESPACE) $(HELM_OPTIONS)
clean:
rm -rf mongodb-kubernetes-operator