@@ -68,7 +68,7 @@ clean-venv:
6868
6969
7070.PHONY : run-local-tests
71- run-local-tests : # # Run tests
71+ run-local-tests : certs # # Run tests
7272 source $(ROOT_DIR ) /tests/venv/bin/activate \
7373 && pytest \
7474 --image=$(BUILD_IMAGE ) \
@@ -84,7 +84,7 @@ run-local-tests: ## Run tests
8484
8585
8686.PHONY : run-tests
87- run-tests : # # Run tests
87+ run-tests : certs # # Run tests
8888 docker run --rm -v $(KUBE_CONFIG_FOLDER ) :/root/.kube \
8989 $(TEST_PREFIX ) :$(TEST_TAG ) \
9090 --context=$(CONTEXT ) \
@@ -100,7 +100,7 @@ run-tests: ## Run tests
100100
101101
102102.PHONY : run-tests-in-kind
103- run-tests-in-kind : # # Run tests in Kind
103+ run-tests-in-kind : certs # # Run tests in Kind
104104 docker run --network=kind --rm \
105105 -v $(KIND_KUBE_CONFIG_FOLDER ) :/root/.kube \
106106 -v $(ROOT_DIR ) /tests:/workspace/tests \
@@ -142,7 +142,7 @@ image-load: ## Load the image into the Kind K8S cluster
142142
143143
144144.PHONY : run-tests-in-minikube
145- run-tests-in-minikube : # # Run tests in Minikube
145+ run-tests-in-minikube : certs # # Run tests in Minikube
146146 docker run --network=minikube --rm \
147147 -v $(MINIKUBE_KUBE_CONFIG_FOLDER ) :/root/.kube \
148148 -v $(ROOT_DIR ) /tests:/workspace/tests \
@@ -192,3 +192,7 @@ upgrade-resources:
192192# # Create and delete resources for upgrade tests e.g. `make upgrade-resources PYTEST_ARGS="create OR delete"`
193193 pip install -r ../tests/requirements.txt --no-deps
194194 pytest -v -s -m $(PYTEST_ARGS)
195+
196+ .PHONY : certs
197+ certs : # # Create just in time TLS certificates needed for tests and examples
198+ make -C $(ROOT_DIR ) certs
0 commit comments