Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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