Skip to content

Commit b39dff1

Browse files
committed
add support for eks 1.31
1 parent 49aff8f commit b39dff1

File tree

8 files changed

+396
-10
lines changed

8 files changed

+396
-10
lines changed

pkg/actions/cluster/upgrade.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ func getNextVersion(currentVersion string) (string, error) {
132132
return api.Version1_30, nil
133133
case api.Version1_30:
134134
return api.Version1_31, nil
135+
case api.Version1_31:
136+
return api.Version1_32, nil
135137
default:
136138
// version of control plane is not known to us, maybe we are just too old...
137139
return "", fmt.Errorf("control plane version %q is not known to this version of eksctl, try to upgrade eksctl first", currentVersion)

pkg/actions/cluster/upgrade_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ var _ = Describe("upgrade cluster", func() {
8686
}),
8787

8888
Entry("fails when the version is still not supported", upgradeCase{
89-
givenVersion: "1.31",
89+
givenVersion: "1.32",
9090
eksVersion: api.LatestVersion,
91-
expectedErrorText: "control plane version \"1.31\" is not known to this version of eksctl",
91+
expectedErrorText: "control plane version \"1.32\" is not known to this version of eksctl",
9292
}),
9393
)
9494
})

pkg/actions/nodegroup/testdata/al2-updated-template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
]
141141
},
142142
"NodegroupName": "amazonlinux2",
143-
"ReleaseVersion": "1.30-20201212",
143+
"ReleaseVersion": "1.31-20201212",
144144
"ScalingConfig": {
145145
"DesiredSize": 4,
146146
"MaxSize": 4,

0 commit comments

Comments
 (0)