Merge pull request #12717 from afbjorklund/kubeadm-pause

Add kubeadm image versions for kubernetes 1.23
pull/12737/head
Medya Ghazizadeh 2021-10-19 10:44:31 -07:00 committed by GitHub
commit b5f8781152
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -31,8 +31,11 @@ func Pause(v semver.Version, mirror string) string {
// Note: changing this logic requires bumping the preload version
// Should match `PauseVersion` in:
// https://github.com/kubernetes/kubernetes/blob/master/cmd/kubeadm/app/constants/constants.go
pv := "3.5"
pv := "3.6"
// https://github.com/kubernetes/kubernetes/blob/master/cmd/kubeadm/app/constants/constants_unix.go
if semver.MustParseRange("<1.23.0-alpha.2")(v) {
pv = "3.5"
}
if semver.MustParseRange("<1.22.0-alpha.3")(v) {
pv = "3.4.1"
}