mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-12 20:57:20 +00:00
Updating pause image refernces to 3.9
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
This commit is contained in:
@@ -417,7 +417,7 @@ const (
|
||||
ModeNode string = "Node"
|
||||
|
||||
// PauseVersion indicates the default pause image version for kubeadm
|
||||
PauseVersion = "3.8"
|
||||
PauseVersion = "3.9"
|
||||
|
||||
// CgroupDriverSystemd holds the systemd driver type
|
||||
CgroupDriverSystemd = "systemd"
|
||||
|
@@ -77,11 +77,11 @@ func TestBuildKubeletArgMap(t *testing.T) {
|
||||
nodeRegOpts: &kubeadmapi.NodeRegistrationOptions{
|
||||
CRISocket: "unix:///var/run/containerd/containerd.sock",
|
||||
},
|
||||
pauseImage: "registry.k8s.io/pause:3.8",
|
||||
pauseImage: "registry.k8s.io/pause:3.9",
|
||||
},
|
||||
expected: map[string]string{
|
||||
"container-runtime-endpoint": "unix:///var/run/containerd/containerd.sock",
|
||||
"pod-infra-container-image": "registry.k8s.io/pause:3.8",
|
||||
"pod-infra-container-image": "registry.k8s.io/pause:3.9",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
@@ -111,8 +111,8 @@ func TestCleanupKubeletDynamicEnvFileContainerRuntime(t *testing.T) {
|
||||
}{
|
||||
{
|
||||
name: "common flag",
|
||||
input: fmt.Sprintf("%s=\"--container-runtime=remote --container-runtime-endpoint=unix:///var/run/containerd/containerd.sock --pod-infra-container-image=registry.k8s.io/pause:3.8\"", constants.KubeletEnvFileVariableName),
|
||||
expected: fmt.Sprintf("%s=\"--container-runtime-endpoint=unix:///var/run/containerd/containerd.sock --pod-infra-container-image=registry.k8s.io/pause:3.8\"", constants.KubeletEnvFileVariableName),
|
||||
input: fmt.Sprintf("%s=\"--container-runtime=remote --container-runtime-endpoint=unix:///var/run/containerd/containerd.sock --pod-infra-container-image=registry.k8s.io/pause:3.9\"", constants.KubeletEnvFileVariableName),
|
||||
expected: fmt.Sprintf("%s=\"--container-runtime-endpoint=unix:///var/run/containerd/containerd.sock --pod-infra-container-image=registry.k8s.io/pause:3.9\"", constants.KubeletEnvFileVariableName),
|
||||
},
|
||||
{
|
||||
name: "missing flag of interest",
|
||||
|
@@ -21,9 +21,9 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
validTmpl = "image: {{ .ImageRepository }}/pause:3.8"
|
||||
validTmplOut = "image: registry.k8s.io/pause:3.8"
|
||||
doNothing = "image: registry.k8s.io/pause:3.8"
|
||||
validTmpl = "image: {{ .ImageRepository }}/pause:3.9"
|
||||
validTmplOut = "image: registry.k8s.io/pause:3.9"
|
||||
doNothing = "image: registry.k8s.io/pause:3.9"
|
||||
invalidTmpl1 = "{{ .baz }/d}"
|
||||
invalidTmpl2 = "{{ !foobar }}"
|
||||
)
|
||||
|
Reference in New Issue
Block a user