@@ -159,29 +159,34 @@ test: generate fmt vet envtest ## Run tests.
159159e2etest : generate local-release local-deploy chainsaw s5cmd
160160 GIT_REF=$(GIT_REF ) SSE_KEY=$$(openssl rand -base64 32 ) LOCALBIN=$(CACHE_BIN ) $(CHAINSAW ) test ./e2e --selector $(E2E_SELECTOR ) $(E2E_FLAGS )
161161
162- local-deploy : kind ctlptl tilt kustomize clusterctl
163- $( CTLPTL ) apply -f . tilt/ctlptl-config.yaml
162+ .PHONY : local-deploy
163+ local-deploy : kind-cluster tilt kustomize clusterctl
164164 $(TILT ) ci -f Tiltfile
165165
166+ .PHONY : kind-cluster
167+ kind-cluster : kind ctlptl
168+ $(CTLPTL ) apply -f .tilt/ctlptl-config.yaml
169+
166170# #@ Test Upgrade:
167171
168172LATEST_REF := $(shell git rev-parse --short HEAD)
169173LAST_RELEASE := $(shell git describe --abbrev=0 --tags)
170174COMMON_CLUSTER_REF := $(shell echo "up-$(LATEST_REF ) " | cut -c1-8)
171175
172- .PHONY : last-release-cluster
173- last-release-cluster : kind ctlptl tilt kustomize clusterctl chainsaw local-release
174- $(CTLPTL ) apply -f .tilt/ctlptl-config.yaml
175- git checkout $(LAST_RELEASE )
176- $(TILT ) ci -f Tiltfile
177- GIT_REF=$(COMMON_CLUSTER_REF ) LOCALBIN=$(CACHE_BIN ) CLUSTERCTL_CONFIG=$(CLUSTERCTL_CONFIG ) $(CHAINSAW ) test ./e2e/capl-cluster-flavors/kubeadm-capl-cluster
178-
179176.PHONY : checkout-latest-commit
180177checkout-latest-commit :
181178 git checkout $(LATEST_REF )
182179
180+ .PHONY : checkout-last-release
181+ checkout-last-release :
182+ git checkout $(LAST_RELEASE )
183+
184+ .PHONY : last-release-cluster
185+ last-release-cluster : kind ctlptl tilt kustomize clusterctl chainsaw kind-cluster checkout-last-release local-release local-deploy
186+ GIT_REF=$(COMMON_CLUSTER_REF ) LOCALBIN=$(CACHE_BIN ) CLUSTERCTL_CONFIG=$(CLUSTERCTL_CONFIG ) $(CHAINSAW ) test ./e2e/capl-cluster-flavors/kubeadm-capl-cluster
187+
183188.PHONY : test-upgrade
184- test-upgrade : last-release-cluster checkout-latest-commit local-deploy local-release
189+ test-upgrade : last-release-cluster checkout-latest-commit local-release local-deploy
185190 GIT_REF=$(COMMON_CLUSTER_REF ) LOCALBIN=$(CACHE_BIN ) CLUSTERCTL_CONFIG=$(CLUSTERCTL_CONFIG ) $(CHAINSAW ) test ./e2e/capl-cluster-flavors/kubeadm-capl-cluster
186191
187192.PHONY : clean-kind-cluster
0 commit comments