Skip to content

Commit

Permalink
Add Support for EKS 1.29 (#228)
Browse files Browse the repository at this point in the history
* add support for eks 1.29 drop support for eks 1.24

* update version table to remove v prefix

* update version lookup table to latest
  • Loading branch information
ryehowell committed Apr 3, 2024
1 parent 8e1c112 commit 5a9d77a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
24 changes: 12 additions & 12 deletions eks/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,33 +39,33 @@ const (

var (
// NOTE: Ensure that there is an entry for each supported version in the following tables.
supportedVersions = []string{"1.28", "1.27", "1.26", "1.25", "1.24"}
supportedVersions = []string{"1.29", "1.28", "1.27", "1.26", "1.25"}

// Reference: https://docs.aws.amazon.com/eks/latest/userguide/managing-coredns.html
coreDNSVersionLookupTable = map[string]string{
"1.29": "1.11.1-eksbuild",
"1.28": "1.10.1-eksbuild",
"1.27": "1.10.1-eksbuild",
"1.26": "1.9.3-eksbuild",
"1.25": "1.9.3-eksbuild",
"1.24": "1.9.3-eksbuild",
}

// Reference: https://docs.aws.amazon.com/eks/latest/userguide/managing-kube-proxy.html#updating-kube-proxy-add-on
kubeProxyVersionLookupTable = map[string]string{
"1.28": "1.28.2-minimal-eksbuild",
"1.27": "1.27.6-minimal-eksbuild",
"1.26": "1.26.9-minimal-eksbuild",
"1.25": "1.25.14-minimal-eksbuild",
"1.24": "1.24.17-minimal-eksbuild",
"1.29": "1.29.1-minimal-eksbuild",
"1.28": "1.28.6-minimal-eksbuild",
"1.27": "1.27.10-minimal-eksbuild",
"1.26": "1.26.13-minimal-eksbuild",
"1.25": "1.25.16-minimal-eksbuild",
}

// Reference: https://docs.aws.amazon.com/eks/latest/userguide/managing-vpc-cni.html
amazonVPCCNIVersionLookupTable = map[string]string{
"1.28": "1.15.1",
"1.27": "1.15.1",
"1.26": "1.15.1",
"1.25": "1.15.1",
"1.24": "1.15.1",
"1.29": "1.16.2",
"1.28": "1.16.2",
"1.27": "1.16.2",
"1.26": "1.16.2",
"1.25": "1.16.2",
}

defaultContainerImageAccount = "602401143452"
Expand Down
12 changes: 6 additions & 6 deletions eks/sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,16 +197,16 @@ func TestFindLatestEKSBuilds(t *testing.T) {
region string
expectedVersion string
}{
{coreDNSVersionLookupTable, coreDNSRepoPath, "1.29", "us-east-1", "1.11.1-eksbuild.6"},
{coreDNSVersionLookupTable, coreDNSRepoPath, "1.28", "us-east-1", "1.10.1-eksbuild.8"},
{coreDNSVersionLookupTable, coreDNSRepoPath, "1.27", "us-east-1", "1.10.1-eksbuild.8"},
{coreDNSVersionLookupTable, coreDNSRepoPath, "1.26", "us-east-1", "1.9.3-eksbuild.12"},
{coreDNSVersionLookupTable, coreDNSRepoPath, "1.25", "us-east-1", "1.9.3-eksbuild.12"},
{coreDNSVersionLookupTable, coreDNSRepoPath, "1.24", "us-east-1", "1.9.3-eksbuild.12"},
{kubeProxyVersionLookupTable, kubeProxyRepoPath, "1.28", "us-east-1", "1.28.2-minimal-eksbuild.2"},
{kubeProxyVersionLookupTable, kubeProxyRepoPath, "1.27", "us-east-1", "1.27.6-minimal-eksbuild.2"},
{kubeProxyVersionLookupTable, kubeProxyRepoPath, "1.26", "us-east-1", "1.26.9-minimal-eksbuild.2"},
{kubeProxyVersionLookupTable, kubeProxyRepoPath, "1.25", "us-east-1", "1.25.14-minimal-eksbuild.2"},
{kubeProxyVersionLookupTable, kubeProxyRepoPath, "1.24", "us-east-1", "1.24.17-minimal-eksbuild.8"},
{kubeProxyVersionLookupTable, kubeProxyRepoPath, "1.29", "us-east-1", "1.29.1-minimal-eksbuild.3"},
{kubeProxyVersionLookupTable, kubeProxyRepoPath, "1.28", "us-east-1", "1.28.6-minimal-eksbuild.3"},
{kubeProxyVersionLookupTable, kubeProxyRepoPath, "1.27", "us-east-1", "1.27.10-minimal-eksbuild.3"},
{kubeProxyVersionLookupTable, kubeProxyRepoPath, "1.26", "us-east-1", "1.26.13-minimal-eksbuild.3"},
{kubeProxyVersionLookupTable, kubeProxyRepoPath, "1.25", "us-east-1", "1.25.16-minimal-eksbuild.4"},
}

for _, tc := range testCase {
Expand Down

0 comments on commit 5a9d77a

Please sign in to comment.