Skip to content

Commit

Permalink
Merge pull request kubernetes#68990 from carlisia/c-pauseversion
Browse files Browse the repository at this point in the history
Change pause version value to a constant for image
  • Loading branch information
k8s-ci-robot authored Sep 27, 2018
2 parents 762ddf7 + 401f3f8 commit 43a9e08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cmd/kubeadm/app/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ const (
// DefaultEtcdVersion indicates the default etcd version that kubeadm uses
DefaultEtcdVersion = "3.2.24"

// PauseVersion indicates the default pause image version for kubeadm
PauseVersion = "3.1"

// Etcd defines variable used internally when referring to etcd component
Etcd = "etcd"
// KubeAPIServer defines variable used internally when referring to kube-apiserver component
Expand Down
2 changes: 1 addition & 1 deletion cmd/kubeadm/app/images/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func GetAllImages(cfg *kubeadmapi.ClusterConfiguration) []string {
imgs = append(imgs, GetKubeControlPlaneImage(constants.KubeProxy, cfg))

// pause, etcd and kube-dns are not available on the ci image repository so use the default image repository.
imgs = append(imgs, GetGenericImage(cfg.ImageRepository, "pause", "3.1"))
imgs = append(imgs, GetGenericImage(cfg.ImageRepository, "pause", constants.PauseVersion))

// if etcd is not external then add the image as it will be required
if cfg.Etcd.Local != nil {
Expand Down

0 comments on commit 43a9e08

Please sign in to comment.