@@ -79,6 +79,8 @@ test-e2e: chainsaw
7979 echo " No Kind cluster is running. Please start a Kind cluster before running the e2e tests." ; \
8080 exit 1; \
8181 }
82+ $(KIND ) get kubeconfig --name nso-standard > $(TMPDIR ) /.kind-nso-standard.yaml
83+ $(KIND ) get kubeconfig --name nso-infra > $(TMPDIR ) /.kind-nso-infra.yaml
8284 $(CHAINSAW ) test ./test/e2e \
8385 --cluster nso-standard=$(TMPDIR ) /.kind-nso-standard.yaml \
8486 --cluster nso-infra=$(TMPDIR ) /.kind-nso-infra.yaml
@@ -142,7 +144,10 @@ set-image-controller: manifests kustomize
142144prepare-infra-cluster : cert-manager envoy-gateway external-dns
143145
144146.PHONY : prepare-e2e
145- prepare-e2e : chainsaw set-image-controller cert-manager envoy-gateway external-dns load-image-all deploy-e2e
147+ prepare-e2e : chainsaw set-image-controller cert-manager load-image-all deploy-e2e
148+
149+ .PHONY : prepare-dev
150+ prepare-dev : chainsaw set-image-controller cert-manager install
146151
147152.PHONY : load-image-all
148153load-image-all : load-image-operator
@@ -167,12 +172,10 @@ external-dns:
167172.PHONY : kind-standard-cluster
168173kind-standard-cluster : kind
169174 $(KIND ) create cluster --config=config/tools/kind/standard-cluster.yaml
170- $(KIND ) get kubeconfig --name nso-standard > $(TMPDIR ) /.kind-nso-standard.yaml
171175
172176.PHONY : kind-infra-cluster
173177kind-infra-cluster : kind
174178 $(KIND ) create cluster --config=config/tools/kind/infra-cluster.yaml
175- $(KIND ) get kubeconfig --name nso-infra > $(TMPDIR ) /.kind-nso-infra.yaml
176179
177180# #@ Deployment
178181
@@ -182,23 +185,23 @@ endif
182185
183186.PHONY : install
184187install : manifests kustomize # # Install CRDs into the K8s cluster specified in ~/.kube/config.
185- $(KUSTOMIZE ) build config/dev | $(KUBECTL ) apply -f -
188+ $(KUSTOMIZE ) build --enable-helm config/dev | $(KUBECTL ) apply -f -
186189
187190.PHONY : uninstall
188191uninstall : manifests kustomize # # Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
189- $(KUSTOMIZE ) build config/crd | $(KUBECTL ) delete --ignore-not-found=$(ignore-not-found ) -f -
192+ $(KUSTOMIZE ) build --enable-helm config/crd | $(KUBECTL ) delete --ignore-not-found=$(ignore-not-found ) -f -
190193
191194.PHONY : deploy
192195deploy : set-image-controller # # Deploy controller to the K8s cluster specified in ~/.kube/config.
193- $(KUSTOMIZE ) build config/default | $(KUBECTL ) apply -f -
196+ $(KUSTOMIZE ) build --enable-helm config/default | $(KUBECTL ) apply -f -
194197
195198.PHONY : deploy-e2e
196199deploy-e2e : set-image-controller
197- $(KUSTOMIZE ) build config/e2e | $(KUBECTL ) apply -f -
200+ $(KUSTOMIZE ) build --enable-helm config/e2e | $(KUBECTL ) apply -f -
198201
199202.PHONY : undeploy
200203undeploy : kustomize # # Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
201- $(KUSTOMIZE ) build config/default | $(KUBECTL ) delete --ignore-not-found=$(ignore-not-found ) -f -
204+ $(KUSTOMIZE ) build --enable-helm config/default | $(KUBECTL ) delete --ignore-not-found=$(ignore-not-found ) -f -
202205
203206
204207
@@ -238,7 +241,7 @@ CRDOC_VERSION ?= v0.6.4
238241KIND_VERSION ?= v0.27.0
239242
240243# renovate: datasource=go depName=github.com/kyverno/chainsaw
241- CHAINSAW_VERSION ?= v0.2.12
244+ CHAINSAW_VERSION ?= v0.2.13
242245
243246# renovate: datasource=go depName=github.com/cert-manager/cmctl/v2
244247CMCTL_VERSION ?= v2.1.1
0 commit comments