Skip to content

Commit c4064ec

Browse files
author
Cecile Robert-Michon
committed
Fix the custom vnet test template to provide the route table and nsg names
1 parent a8555bb commit c4064ec

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

templates/test/ci/cluster-template-prow-custom-vnet.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,14 @@ spec:
3838
subnets:
3939
- name: ${AZURE_CUSTOM_VNET_NAME}-controlplane-subnet
4040
role: control-plane
41+
securityGroup:
42+
name: control-plane-nsg
4143
- name: ${AZURE_CUSTOM_VNET_NAME}-node-subnet
4244
role: node
45+
routeTable:
46+
name: node-routetable
47+
securityGroup:
48+
name: node-nsg
4349
vnet:
4450
name: ${AZURE_CUSTOM_VNET_NAME}
4551
resourceGroup: ${AZURE_RESOURCE_GROUP}

templates/test/ci/prow-custom-vnet/patches/custom-vnet.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,11 @@ spec:
1010
subnets:
1111
- name: ${AZURE_CUSTOM_VNET_NAME}-controlplane-subnet
1212
role: control-plane
13+
securityGroup:
14+
name: control-plane-nsg
1315
- name: ${AZURE_CUSTOM_VNET_NAME}-node-subnet
1416
role: node
17+
routeTable:
18+
name: node-routetable
19+
securityGroup:
20+
name: node-nsg

test/e2e/azure_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build e2e
12
// +build e2e
23

34
/*
@@ -141,7 +142,7 @@ var _ = Describe("Workload cluster creation", func() {
141142

142143
if os.Getenv("LOCAL_ONLY") != "true" {
143144
Context("Creating a private cluster", func() {
144-
It("Creates a public management cluster in the same vnet", func() {
145+
It("Creates a public management cluster a custom vnet", func() {
145146
clusterName = getClusterName(clusterNamePrefix, "public-custom-vnet")
146147
Context("Creating a custom virtual network", func() {
147148
Expect(os.Setenv(AzureCustomVNetName, "custom-vnet")).NotTo(HaveOccurred())

0 commit comments

Comments
 (0)