Skip to content

Commit 98db7cb

Browse files
committed
When creating compute.Subnetwork structs, set the StackType to the same value as
the StackType in the SubnetSpecs.
1 parent 5617939 commit 98db7cb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

cloud/scope/cluster.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ func (s *ClusterScope) SubnetSpecs() []*compute.Subnetwork {
263263
Network: s.NetworkLink(),
264264
Purpose: ptr.Deref(subnetwork.Purpose, "PRIVATE_RFC_1918"),
265265
Role: "ACTIVE",
266+
StackType: subnetwork.StackType,
266267
})
267268
}
268269

cloud/scope/managedcluster.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ func (s *ManagedClusterScope) SubnetSpecs() []*compute.Subnetwork {
247247
Network: s.NetworkLink(),
248248
Purpose: ptr.Deref(subnetwork.Purpose, "PRIVATE_RFC_1918"),
249249
Role: "ACTIVE",
250+
StackType: subnetwork.StackType,
250251
})
251252
}
252253

0 commit comments

Comments
 (0)