Skip to content

Commit 9bf0cf9

Browse files
committed
Also consider private subnets with an IPv6 CIDR range as already having
a CIDR range associated Signed-off-by: Rich <git0@bitservices.io>
1 parent 01a8139 commit 9bf0cf9

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

upup/pkg/fi/cloudup/subnets.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,15 @@ func assignCIDRsToSubnets(c *kops.Cluster, cloud fi.Cloud) error {
233233
func allSubnetsHaveCIDRs(c *kops.Cluster) bool {
234234
for i := range c.Spec.Networking.Subnets {
235235
subnet := &c.Spec.Networking.Subnets[i]
236-
if subnet.CIDR == "" {
237-
return false
236+
if subnet.CIDR != "" {
237+
continue
238238
}
239+
240+
if subnet.IPv6CIDR != "" && subnet.Type == kops.SubnetTypePrivate {
241+
continue
242+
}
243+
244+
return false
239245
}
240246

241247
return true

0 commit comments

Comments
 (0)