Improve error message when trying to use IPv6 with amazonvpc networking

This commit is contained in:
John Gardiner Myers 2023-01-02 19:11:54 -08:00
parent 991ab04201
commit 566d7d0527
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ func PerformAssignments(c *kops.Cluster, cloud fi.Cloud) error {
}
// Amazon VPC CNI uses the same network
if c.Spec.Networking.AmazonVPC != nil {
if c.Spec.Networking.AmazonVPC != nil && c.Spec.Networking.NonMasqueradeCIDR != "::/0" {
c.Spec.Networking.NonMasqueradeCIDR = c.Spec.Networking.NetworkCIDR
}
}