Skip to content

Commit decec19

Browse files
authored
Add support for EKS 1.28 (#213)
* add support for eks 1.28 and drop support for eks 1.23 * update test table with latest versions as reported by api * update version mapping for kube-proxy latest version
1 parent 32b0d81 commit decec19

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

eks/sync.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,33 +39,33 @@ const (
3939

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

4444
// Reference: https://docs.aws.amazon.com/eks/latest/userguide/managing-coredns.html
4545
coreDNSVersionLookupTable = map[string]string{
46+
"1.28": "1.10.1-eksbuild",
4647
"1.27": "1.10.1-eksbuild",
4748
"1.26": "1.9.3-eksbuild",
4849
"1.25": "1.9.3-eksbuild",
49-
"1.24": "1.8.7-eksbuild",
50-
"1.23": "1.8.7-eksbuild",
50+
"1.24": "1.9.3-eksbuild",
5151
}
5252

5353
// Reference: https://docs.aws.amazon.com/eks/latest/userguide/managing-kube-proxy.html#updating-kube-proxy-add-on
5454
kubeProxyVersionLookupTable = map[string]string{
55-
"1.27": "1.27.1-minimal-eksbuild",
56-
"1.26": "1.26.2-minimal-eksbuild",
57-
"1.25": "1.25.6-minimal-eksbuild",
58-
"1.24": "1.24.7-minimal-eksbuild",
59-
"1.23": "1.23.8-minimal-eksbuild",
55+
"1.28": "1.28.2-minimal-eksbuild",
56+
"1.27": "1.27.6-minimal-eksbuild",
57+
"1.26": "1.26.9-minimal-eksbuild",
58+
"1.25": "1.25.14-minimal-eksbuild",
59+
"1.24": "1.24.17-minimal-eksbuild",
6060
}
6161

6262
// Reference: https://docs.aws.amazon.com/eks/latest/userguide/managing-vpc-cni.html
6363
amazonVPCCNIVersionLookupTable = map[string]string{
64-
"1.27": "1.13.2",
65-
"1.26": "1.12.6",
66-
"1.25": "1.12.2",
67-
"1.24": "1.11.4",
68-
"1.23": "1.11.4",
64+
"1.28": "1.15.1",
65+
"1.27": "1.15.1",
66+
"1.26": "1.15.1",
67+
"1.25": "1.15.1",
68+
"1.24": "1.15.1",
6969
}
7070

7171
defaultContainerImageAccount = "602401143452"

eks/sync_test.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -197,16 +197,16 @@ func TestFindLatestEKSBuilds(t *testing.T) {
197197
region string
198198
expectedVersion string
199199
}{
200-
{coreDNSVersionLookupTable, coreDNSRepoPath, "1.27", "us-east-1", "1.10.1-eksbuild.2"},
201-
{coreDNSVersionLookupTable, coreDNSRepoPath, "1.26", "us-east-1", "1.9.3-eksbuild.5"},
202-
{coreDNSVersionLookupTable, coreDNSRepoPath, "1.25", "us-east-1", "1.9.3-eksbuild.5"},
203-
{coreDNSVersionLookupTable, coreDNSRepoPath, "1.24", "us-east-1", "1.8.7-eksbuild.7"},
204-
{coreDNSVersionLookupTable, coreDNSRepoPath, "1.23", "us-east-1", "1.8.7-eksbuild.7"},
205-
{kubeProxyVersionLookupTable, kubeProxyRepoPath, "1.27", "us-east-1", "1.27.1-minimal-eksbuild.1"},
206-
{kubeProxyVersionLookupTable, kubeProxyRepoPath, "1.26", "us-east-1", "1.26.2-minimal-eksbuild.1"},
207-
{kubeProxyVersionLookupTable, kubeProxyRepoPath, "1.25", "us-east-1", "1.25.6-minimal-eksbuild.2"},
208-
{kubeProxyVersionLookupTable, kubeProxyRepoPath, "1.24", "us-east-1", "1.24.7-minimal-eksbuild.2"},
209-
{kubeProxyVersionLookupTable, kubeProxyRepoPath, "1.23", "us-east-1", "1.23.8-minimal-eksbuild.2"},
200+
{coreDNSVersionLookupTable, coreDNSRepoPath, "1.28", "us-east-1", "1.10.1-eksbuild.5"},
201+
{coreDNSVersionLookupTable, coreDNSRepoPath, "1.27", "us-east-1", "1.10.1-eksbuild.5"},
202+
{coreDNSVersionLookupTable, coreDNSRepoPath, "1.26", "us-east-1", "1.9.3-eksbuild.9"},
203+
{coreDNSVersionLookupTable, coreDNSRepoPath, "1.25", "us-east-1", "1.9.3-eksbuild.9"},
204+
{coreDNSVersionLookupTable, coreDNSRepoPath, "1.24", "us-east-1", "1.9.3-eksbuild.9"},
205+
{kubeProxyVersionLookupTable, kubeProxyRepoPath, "1.28", "us-east-1", "1.28.2-minimal-eksbuild.2"},
206+
{kubeProxyVersionLookupTable, kubeProxyRepoPath, "1.27", "us-east-1", "1.27.6-minimal-eksbuild.2"},
207+
{kubeProxyVersionLookupTable, kubeProxyRepoPath, "1.26", "us-east-1", "1.26.9-minimal-eksbuild.2"},
208+
{kubeProxyVersionLookupTable, kubeProxyRepoPath, "1.25", "us-east-1", "1.25.14-minimal-eksbuild.2"},
209+
{kubeProxyVersionLookupTable, kubeProxyRepoPath, "1.24", "us-east-1", "1.24.17-minimal-eksbuild.3"},
210210
}
211211

212212
for _, tc := range testCase {

0 commit comments

Comments
 (0)