File tree Expand file tree Collapse file tree 8 files changed +30
-1
lines changed
common-patches/externalNetworkByName Expand file tree Collapse file tree 8 files changed +30
-1
lines changed Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ components:
66- ../common-patches/cni
77- ../upgrade-patches
88- ../common-patches/ccm
9+ - ../common-patches/externalNetworkByName
Original file line number Diff line number Diff line change @@ -5,3 +5,4 @@ resources:
55components :
66- ../common-patches/cni
77- ../common-patches/ccm
8+ - ../common-patches/externalNetworkByName
Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ resources:
66components :
77- ../common-patches/cni
88- ../common-patches/ccm
9+ - ../common-patches/externalNetworkByName
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ resources:
66components :
77- ../common-patches/cni
88- ../common-patches/ccm
9+ - ../common-patches/externalNetworkByName
You canβt perform that action at this time.
0 commit comments