Skip to content

Commit

Permalink
feat: add cert-manager deployment for e2e test environments. (#28)
Browse files Browse the repository at this point in the history
Adds Makefile target to pull the cert-manager deployment from the cert-manager project.
  • Loading branch information
hessjcg authored Sep 28, 2022
1 parent b9bc1b3 commit 99a3104
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -212,3 +212,8 @@ $(CONTROLLER_GEN): $(LOCALBIN)
envtest: $(ENVTEST) ## Download envtest-setup locally if necessary.
$(ENVTEST): $(LOCALBIN)
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest

config/certmanager-deployment/certmanager-deployment.yaml: ## Download the cert-manager deployment
test -s $@ || curl -L -o $@ \
https://github.com/cert-manager/cert-manager/releases/download/v1.9.1/cert-manager.yaml

2 changes: 2 additions & 0 deletions config/certmanager-deployment/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cert-manager.yaml
certmanager-deployment.yaml
10 changes: 10 additions & 0 deletions config/certmanager-deployment/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
The Cert Manager is used during end-to-end tests to distribute the
mutual TLS authentication certs used between the cloud-sql-proxy-operator
and the kubernetes API. This is only used during E2E tests. cert-managger is not
distributed as part of this operator.

The Makefile will download an appropriate file to this directory from
the certmanager website. This file should not be added to git.

See: https://github.com/cert-manager/cert-manager

0 comments on commit 99a3104

Please sign in to comment.