Skip to content

Commit

Permalink
add support for eks 1.31
Browse files Browse the repository at this point in the history
  • Loading branch information
TiberiuGC committed Sep 26, 2024
1 parent ceae162 commit ecaf682
Show file tree
Hide file tree
Showing 8 changed files with 396 additions and 10 deletions.
2 changes: 2 additions & 0 deletions pkg/actions/cluster/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ func getNextVersion(currentVersion string) (string, error) {
return api.Version1_30, nil
case api.Version1_30:
return api.Version1_31, nil
case api.Version1_31:
return api.Version1_32, nil
default:
// version of control plane is not known to us, maybe we are just too old...
return "", fmt.Errorf("control plane version %q is not known to this version of eksctl, try to upgrade eksctl first", currentVersion)
Expand Down
4 changes: 2 additions & 2 deletions pkg/actions/cluster/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ var _ = Describe("upgrade cluster", func() {
}),

Entry("fails when the version is still not supported", upgradeCase{
givenVersion: "1.31",
givenVersion: "1.32",
eksVersion: api.LatestVersion,
expectedErrorText: "control plane version \"1.31\" is not known to this version of eksctl",
expectedErrorText: "control plane version \"1.32\" is not known to this version of eksctl",
}),
)
})
2 changes: 1 addition & 1 deletion pkg/actions/nodegroup/testdata/al2-updated-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
]
},
"NodegroupName": "amazonlinux2",
"ReleaseVersion": "1.30-20201212",
"ReleaseVersion": "1.31-20201212",
"ScalingConfig": {
"DesiredSize": 4,
"MaxSize": 4,
Expand Down
Loading

0 comments on commit ecaf682

Please sign in to comment.