forked from sse-secure-systems/connaisseur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (27 loc) · 1.15 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
NAMESPACE = connaisseur
IMAGE := $(shell yq e '.deployment.image' helm/values.yaml)
COSIGN_VERSION = 1.11.0
.PHONY: all docker install uninstall upgrade annihilate
all: docker install
docker:
docker build --pull --build-arg COSIGN_VERSION=$(COSIGN_VERSION) -f docker/Dockerfile -t $(IMAGE) .
install:
#
#=============================================
#
# The installation may last up to 5 minutes.
#
#=============================================
#
helm install connaisseur helm --atomic --create-namespace --namespace $(NAMESPACE)
dev-install:
helm install --set deployment.replicasCount=1,deployment.imagePullPolicy=Never connaisseur helm --atomic --create-namespace --namespace $(NAMESPACE)
uninstall:
helm uninstall connaisseur -n $(NAMESPACE)
kubectl delete ns $(NAMESPACE)
upgrade:
helm upgrade connaisseur helm -n $(NAMESPACE) --wait
annihilate:
kubectl delete all,mutatingwebhookconfigurations,clusterroles,clusterrolebindings,configmaps,secrets,serviceaccounts,crds -lapp.kubernetes.io/instance=connaisseur -n $(NAMESPACE)
kubectl delete imagepolicies -lapp.kubernetes.io/instance=connaisseur -n $(NAMESPACE) || true
kubectl delete ns $(NAMESPACE)