Skip to content

Commit 2f06185

Browse files
committed
Make target to install Cert Manager
1 parent 5efe0f4 commit 2f06185

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,24 @@ docker-build-dev: check-env-docker-repo git-commit-sha
118118
docker build --build-arg=GIT_COMMIT=$(GIT_COMMIT) -t $(DOCKER_REGISTRY_SERVER)/$(OPERATOR_IMAGE):$(GIT_COMMIT) .
119119
docker push $(DOCKER_REGISTRY_SERVER)/$(OPERATOR_IMAGE):$(GIT_COMMIT)
120120

121+
CERT_MANAGER_VERSION ?= 1.2.0
122+
CERT_MANAGER_HELM_RELEASE := cert-manager
123+
CERT_MANAGER_NAMESPACE := cert-manager
124+
cert-manager:
125+
@echo "Installing Cert Manager"
126+
helm repo add jetstack https://charts.jetstack.io
127+
helm upgrade $(CERT_MANAGER_HELM_RELEASE) jetstack/$(@) \
128+
--install \
129+
--namespace $(CERT_MANAGER_NAMESPACE) --create-namespace \
130+
--version $(CERT_MANAGER_VERSION) \
131+
--wait
132+
133+
cert-manager-rm:
134+
@echo "Deleting Cert Manager"
135+
helm uninstall $(CERT_MANAGER_HELM_RELEASE) \
136+
--namespace $(CERT_MANAGER_NAMESPACE)
137+
kubectl delete namespace $(CERT_MANAGER_NAMESPACE)
138+
121139
kind-prepare: ## Prepare KIND to support LoadBalancer services
122140
# Note that created LoadBalancer services will have an unreachable external IP
123141
@kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.9.3/manifests/namespace.yaml

0 commit comments

Comments
 (0)