mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Merge pull request #68990 from carlisia/c-pauseversion
Change pause version value to a constant for image
This commit is contained in:
commit
43a9e08e02
@ -246,6 +246,9 @@ const (
|
|||||||
// DefaultEtcdVersion indicates the default etcd version that kubeadm uses
|
// DefaultEtcdVersion indicates the default etcd version that kubeadm uses
|
||||||
DefaultEtcdVersion = "3.2.24"
|
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 defines variable used internally when referring to etcd component
|
||||||
Etcd = "etcd"
|
Etcd = "etcd"
|
||||||
// KubeAPIServer defines variable used internally when referring to kube-apiserver component
|
// KubeAPIServer defines variable used internally when referring to kube-apiserver component
|
||||||
|
@ -62,7 +62,7 @@ func GetAllImages(cfg *kubeadmapi.ClusterConfiguration) []string {
|
|||||||
imgs = append(imgs, GetKubeControlPlaneImage(constants.KubeProxy, cfg))
|
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.
|
// 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 etcd is not external then add the image as it will be required
|
||||||
if cfg.Etcd.Local != nil {
|
if cfg.Etcd.Local != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user