Skip to content

Commit

Permalink
Merge pull request #12331 from afbjorklund/kubeadm-versions
Browse files Browse the repository at this point in the history
Add kubeadm image versions for kubernetes 1.22
  • Loading branch information
medyagh authored Aug 23, 2021
2 parents 2331f34 + 10dfafe commit 7fa5dbd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
11 changes: 8 additions & 3 deletions pkg/minikube/bootstrapper/images/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.4.1"
pv := "3.5"
// https://github.com/kubernetes/kubernetes/blob/master/cmd/kubeadm/app/constants/constants_unix.go
if semver.MustParseRange("<1.22.0-alpha.3")(v) {
pv = "3.4.1"
}
if semver.MustParseRange("<1.21.0-alpha.3")(v) {
pv = "3.2"
}
Expand Down Expand Up @@ -71,8 +74,10 @@ func coreDNS(v semver.Version, mirror string) string {
if semver.MustParseRange("<1.21.0-alpha.1")(v) {
in = "coredns"
}
cv := "v1.8.0"
cv := "v1.8.4"
switch v.Minor {
case 21:
cv = "v1.8.0"
case 20, 19:
cv = "1.7.0"
case 18:
Expand All @@ -96,7 +101,7 @@ func etcd(v semver.Version, mirror string) string {
// Note: changing this logic requires bumping the preload version
// Should match `DefaultEtcdVersion` in:
// https://github.com/kubernetes/kubernetes/blob/master/cmd/kubeadm/app/constants/constants.go
ev := "3.4.13-3"
ev := "3.5.0-0"

switch v.Minor {
case 19, 20, 21:
Expand Down
9 changes: 9 additions & 0 deletions pkg/minikube/bootstrapper/images/images_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ k8s.gcr.io/kube-proxy:v1.21.0
k8s.gcr.io/pause:3.4.1
k8s.gcr.io/etcd:3.4.13-0
k8s.gcr.io/coredns/coredns:v1.8.0
`, "\n"), "\n")},
{"v1.22.0", strings.Split(strings.Trim(`
k8s.gcr.io/kube-apiserver:v1.22.0
k8s.gcr.io/kube-controller-manager:v1.22.0
k8s.gcr.io/kube-scheduler:v1.22.0
k8s.gcr.io/kube-proxy:v1.22.0
k8s.gcr.io/pause:3.5
k8s.gcr.io/etcd:3.5.0-0
k8s.gcr.io/coredns/coredns:v1.8.4
`, "\n"), "\n")},
}
for _, tc := range testCases {
Expand Down
2 changes: 1 addition & 1 deletion pkg/minikube/download/preload.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const (
// PreloadVersion is the current version of the preloaded tarball
//
// NOTE: You may need to bump this version up when upgrading auxiliary docker images
PreloadVersion = "v11"
PreloadVersion = "v12"
// PreloadBucket is the name of the GCS bucket where preloaded volume tarballs exist
PreloadBucket = "minikube-preloaded-volume-tarballs"
)
Expand Down

0 comments on commit 7fa5dbd

Please sign in to comment.