Skip to content

Commit c16f6bb

Browse files
committed
Prefix network and vpc for project with project name
1 parent 9b7088b commit c16f6bb

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

test/e2e/common.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ const (
6565
)
6666

6767
const (
68-
ControlPlaneIndicator = "control-plane"
69-
MachineDeploymentIndicator = "md"
68+
ControlPlaneIndicator = "-control-plane-"
69+
MachineDeploymentIndicator = "-md-"
7070
DataVolumePrefix = "DATA-"
7171
)
7272

test/e2e/data/infrastructure-cloudstack/v1beta3/cluster-template-project/cloudstack-cluster.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ spec:
1111
zone:
1212
name : ${CLOUDSTACK_ZONE_NAME}
1313
network:
14-
name: ${CLOUDSTACK_VPC_NETWORK_NAME}
14+
name: ${CLOUDSTACK_PROJECT_NAME}-${CLOUDSTACK_VPC_NETWORK_NAME}
1515
gateway: ${CLOUDSTACK_GATEWAY}
1616
netmask: ${CLOUDSTACK_NETMASK}
1717
vpc:
18-
name: ${CLOUDSTACK_VPC_NAME}
18+
name: ${CLOUDSTACK_PROJECT_NAME}-${CLOUDSTACK_VPC_NAME}
1919
cidr: ${CLOUDSTACK_VPC_CIDR}
2020
project: ${CLOUDSTACK_PROJECT_NAME}
2121
controlPlaneEndpoint:

test/e2e/project.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func ProjectSpec(ctx context.Context, inputGetter func() CommonSpecInput) {
4141
cancelWatches context.CancelFunc
4242
clusterResources *clusterctl.ApplyClusterTemplateAndWaitResult
4343
affinityIds []string
44-
vpcName = "vpc-for-e2e-1"
44+
vpcName = fmt.Sprintf("%s-%s", os.Getenv("CLOUDSTACK_PROJECT_NAME"), input.E2EConfig.GetVariable("CLOUDSTACK_VPC_NETWORK_NAME"))
4545
)
4646

4747
BeforeEach(func() {

0 commit comments

Comments
 (0)