Skip to content

Commit

Permalink
Use EKS APIs default vpc-cni addon version for ipv6 clusters (#5078)
Browse files Browse the repository at this point in the history
  • Loading branch information
aclevername authored Apr 7, 2022
1 parent 24d9aef commit c90958b
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion integration/tests/addons/addons_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var _ = Describe("(Integration) [EKS Addons test]", func() {
BeforeSuite(func() {
clusterConfig := api.NewClusterConfig()
clusterConfig.Metadata.Name = clusterName
clusterConfig.Metadata.Version = "latest"
clusterConfig.Metadata.Version = api.LatestVersion
clusterConfig.Metadata.Region = params.Region
clusterConfig.IAM.WithOIDC = api.Enabled()
clusterConfig.Addons = []*api.Addon{
Expand Down
13 changes: 5 additions & 8 deletions integration/tests/ipv6/ipv6_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func TestIPv6(t *testing.T) {
testutils.RegisterAndRun(t)
}

var _ = PDescribe("(Integration) [EKS IPv6 test]", func() {
var _ = Describe("(Integration) [EKS IPv6 test]", func() {
var (
clusterConfig *api.ClusterConfig
)
Expand All @@ -63,23 +63,20 @@ var _ = PDescribe("(Integration) [EKS IPv6 test]", func() {

clusterConfig = api.NewClusterConfig()
clusterConfig.Metadata.Name = clusterName
clusterConfig.Metadata.Version = "1.21"
clusterConfig.Metadata.Version = api.LatestVersion
clusterConfig.Metadata.Region = params.Region
clusterConfig.KubernetesNetworkConfig.IPFamily = "iPv6"
clusterConfig.VPC.NAT = nil
clusterConfig.IAM.WithOIDC = api.Enabled()
clusterConfig.Addons = []*api.Addon{
{
Name: api.VPCCNIAddon,
Version: "latest",
Name: api.VPCCNIAddon,
},
{
Name: api.KubeProxyAddon,
Version: "latest",
Name: api.KubeProxyAddon,
},
{
Name: api.CoreDNSAddon,
Version: "latest",
Name: api.CoreDNSAddon,
},
}
clusterConfig.ManagedNodeGroups = []*api.ManagedNodeGroup{
Expand Down
1 change: 0 additions & 1 deletion pkg/apis/eksctl.io/v1alpha5/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ func (c *ClusterConfig) unsupportedVPCCNIAddonVersion() (bool, error) {
for _, addon := range c.Addons {
if addon.Name == VPCCNIAddon {
if addon.Version == "" {
addon.Version = minimumVPCCNIVersionForIPv6
return false, nil
}
if addon.Version == "latest" {
Expand Down
1 change: 0 additions & 1 deletion pkg/apis/eksctl.io/v1alpha5/validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,6 @@ var _ = Describe("ClusterConfig validation", func() {
cfg.VPC.NAT = nil
err = api.ValidateClusterConfig(cfg)
Expect(err).NotTo(HaveOccurred())
Expect(cfg.Addons[2].Version).To(Equal("1.10.0"))
})
})

Expand Down
2 changes: 2 additions & 0 deletions pkg/awsapi/autoscaling.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pkg/awsapi/cloudtrail.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pkg/awsapi/cloudwatchlogs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c90958b

Please sign in to comment.