Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 4bd88f8

Browse files
authored
Merge pull request #201 from detiber/e2e
🏃 e2e fixes
2 parents 2ccb41b + 8a0bfe8 commit 4bd88f8

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,13 @@ $(KUBEBUILDER):
226226
test: generate fmt vet crds
227227
go test ./... -coverprofile cover.out
228228

229+
.PHONY: e2e-image
230+
e2e-image:
231+
docker build --tag=docker.io/packethost/cluster-api-provider-packet:e2e .
232+
229233
# Run e2e tests
230234
.PHONY: e2e
231-
e2e:
235+
e2e: e2e-image
232236
# This is the name used inside the component.yaml for the container that runs the manager
233237
# The image gets loaded inside kind from ./test/e2e/config/packet-dev.yaml
234238
$(E2E_FLAGS) $(MAKE) -C $(TEST_E2E_DIR) run

config/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ bases:
1212
#- webhook # Disable this if you're not using the webhook functionality.
1313
- default
1414
images:
15-
- name: packet-controller # images with this name
15+
- name: docker.io/packethost/cluster-api-provider-packet:e2e # images with this name
1616
newTag: v0.3.5 # {"type":"string","x-kustomize":{"setter":{"name":"image-tag","value":"v0.3.5"}}}
1717
newName: docker.io/packethost/cluster-api-provider-packet # and this name

config/manager/manager_image_patch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ spec:
88
spec:
99
containers:
1010
# Change the value of image field below to your controller image URL
11-
- image: packethost/cluster-api-provider-packet
11+
- image: docker.io/packethost/cluster-api-provider-packet:e2e
1212
name: manager

test/e2e/config/packet-dev.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
# - cluster-api
44
# - bootstrap kubeadm
55
# - control-plane kubeadm
6+
# - packet
67

78
images:
8-
- name: "packethost/cluster-api-packet-controller"
9+
- name: "docker.io/packethost/cluster-api-provider-packet:e2e"
910
loadBehavior: mustLoad
1011

1112
providers:
12-
1313
- name: cluster-api
1414
type: CoreProvider
1515
versions:
@@ -51,13 +51,8 @@ providers:
5151
versions:
5252
- name: v0.3.0
5353
value: "../../../config"
54-
replacements:
55-
- old: "imagePullPolicy: Always"
56-
new: "imagePullPolicy: IfNotPresent"
57-
- old: "--enable-leader-election"
58-
new: "--enable-leader-election=false"
5954
files:
60-
- sourcePath: "../../../../metadata.yaml"
55+
- sourcePath: "../../../metadata.yaml"
6156
targetName: "metadata.yaml"
6257
- sourcePath: "../../../templates/cluster-template.yaml"
6358

0 commit comments

Comments
 (0)