Skip to content

Commit

Permalink
Add support for 1.23 and drop support of 1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
autero1 committed Sep 6, 2022
1 parent 0920bce commit c6ef500
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
20 changes: 10 additions & 10 deletions eks/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,30 +39,30 @@ const (

var (
// NOTE: Ensure that there is an entry for each supported version in the following tables.
supportedVersions = []string{"1.22", "1.21", "1.20", "1.19"}
supportedVersions = []string{"1.23", "1.22", "1.21", "1.20"}

// Reference: https://docs.aws.amazon.com/eks/latest/userguide/managing-coredns.html
coreDNSVersionLookupTable = map[string]string{
"1.23": "1.8.7-eksbuild",
"1.22": "1.8.7-eksbuild",
"1.21": "1.8.4-eksbuild",
"1.20": "1.8.3-eksbuild",
"1.19": "1.8.0-eksbuild",
}

// Reference: https://docs.aws.amazon.com/eks/latest/userguide/managing-kube-proxy.html#updating-kube-proxy-add-on
kubeProxyVersionLookupTable = map[string]string{
"1.22": "1.22.6-eksbuild",
"1.21": "1.21.2-eksbuild",
"1.20": "1.20.4-eksbuild",
"1.19": "1.19.6-eksbuild",
"1.23": "1.23.7-minimal-eksbuild",
"1.22": "1.22.11-eksbuild",
"1.21": "1.21.14-eksbuild",
"1.20": "1.20.15-eksbuild",
}

// Reference: https://docs.aws.amazon.com/eks/latest/userguide/managing-vpc-cni.html
amazonVPCCNIVersionLookupTable = map[string]string{
"1.22": "1.10.2",
"1.21": "1.10.2",
"1.20": "1.10.2",
"1.19": "1.10.2",
"1.23": "1.11.3",
"1.22": "1.11.3",
"1.21": "1.11.3",
"1.20": "1.11.3",
}

defaultContainerImageAccount = "602401143452"
Expand Down
5 changes: 3 additions & 2 deletions eks/sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,9 @@ func TestFindLatestEKSBuild(t *testing.T) {
region string
expectedVersion string
}{
{"1.20", "us-east-1", "1.20.4-eksbuild.2"},
{"1.22", "us-east-1", "1.22.6-eksbuild.1"},
{"1.20", "us-east-1", "1.20.15-eksbuild.2"},
{"1.22", "us-east-1", "1.22.11-eksbuild.2"},
{"1.23", "us-east-1", "1.23.7-minimal-eksbuild.1"},
}

for _, tc := range testCase {
Expand Down

0 comments on commit c6ef500

Please sign in to comment.