Skip to content

Commit a484ad7

Browse files
author
Rahul Sharma
committed
run local-release after checkout
1 parent f0cc82b commit a484ad7

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

Makefile

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -159,29 +159,34 @@ test: generate fmt vet envtest ## Run tests.
159159
e2etest: 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

168172
LATEST_REF := $(shell git rev-parse --short HEAD)
169173
LAST_RELEASE := $(shell git describe --abbrev=0 --tags)
170174
COMMON_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
180177
checkout-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

e2e/kind-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: kind.x-k8s.io/v1alpha4
33
name: e2e
44
nodes:
55
- role: control-plane
6-
image: kindest/node:v1.31.0
6+
image: kindest/node:v1.28.0
77
extraPortMappings:
88
- containerPort: 8080
99
hostPort: 28080

0 commit comments

Comments
 (0)