Skip to content

Commit 381263d

Browse files
authored
Merge pull request #1932 from shiftstack/externalnet
πŸ› CI: Specify external network by name
2 parents 47f0c1b + 968df70 commit 381263d

File tree

8 files changed

+30
-1
lines changed

8 files changed

+30
-1
lines changed

β€Žtest/e2e/data/e2e_conf.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ variables:
203203
OPENSTACK_IMAGE_NAME_UPGRADE_FROM: "ubuntu-2204-kube-v1.27.2"
204204
OPENSTACK_NODE_MACHINE_FLAVOR: "m1.small"
205205
OPENSTACK_SSH_KEY_NAME: "cluster-api-provider-openstack-sigs-k8s-io"
206-
OPENSTACK_EXTERNAL_NETWORK_ID: ""
206+
# The default external network created by devstack
207+
OPENSTACK_EXTERNAL_NETWORK_NAME: "public"
207208
OPENSTACK_VOLUME_TYPE_ALT: "test-volume-type"
208209
CONFORMANCE_WORKER_MACHINE_COUNT: "5"
209210
CONFORMANCE_CONTROL_PLANE_MACHINE_COUNT: "1"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
apiVersion: kustomize.config.k8s.io/v1alpha1
3+
kind: Component
4+
5+
patches:
6+
- patch: |-
7+
- op: "remove"
8+
path: "/spec/externalNetwork"
9+
- op: "add"
10+
path: "/spec/externalNetwork"
11+
value:
12+
name: "${OPENSTACK_EXTERNAL_NETWORK_NAME}"
13+
target:
14+
kind: OpenStackCluster

β€Žtest/e2e/data/kustomize/default/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ components:
66
- ../common-patches/cni
77
- ../upgrade-patches
88
- ../common-patches/ccm
9+
- ../common-patches/externalNetworkByName

β€Žtest/e2e/data/kustomize/flatcar-sysext/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ resources:
55
components:
66
- ../common-patches/cni
77
- ../common-patches/ccm
8+
- ../common-patches/externalNetworkByName

β€Žtest/e2e/data/kustomize/flatcar/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ resources:
66
components:
77
- ../common-patches/cni
88
- ../common-patches/ccm
9+
- ../common-patches/externalNetworkByName

β€Žtest/e2e/data/kustomize/v1alpha6/kustomization.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,8 @@ patches:
2424
target:
2525
kind: OpenStackCluster
2626
name: \${CLUSTER_NAME}
27+
- patch: |-
28+
- op: "remove"
29+
path: "/spec/externalNetworkId"
30+
target:
31+
kind: OpenStackCluster

β€Žtest/e2e/data/kustomize/v1alpha7/kustomization.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,8 @@ patches:
2424
target:
2525
kind: OpenStackCluster
2626
name: \${CLUSTER_NAME}
27+
- patch: |-
28+
- op: "remove"
29+
path: "/spec/externalNetworkId"
30+
target:
31+
kind: OpenStackCluster

β€Žtest/e2e/data/kustomize/without-lb/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ resources:
66
components:
77
- ../common-patches/cni
88
- ../common-patches/ccm
9+
- ../common-patches/externalNetworkByName

0 commit comments

Comments
Β (0)