Skip to content

Commit 80196b9

Browse files
authored
Merge pull request #18089 from rlees85/existing-ipv6
Fix existing VPCs/Subnets with IPv6
2 parents 4d44413 + 9bf0cf9 commit 80196b9

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)