Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update pause image references to use 3.6 #104711

Merged
merged 1 commit into from
Sep 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ dependencies:
match: TAG\s*\?=

- name: "k8s.gcr.io/pause: dependents"
version: 3.5
version: 3.6
refPaths:
- path: cmd/kubeadm/app/constants/constants.go
match: PauseVersion\s+=
Expand Down
4 changes: 4 additions & 0 deletions build/pause/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 3.6

* Support for Windows container images (OS Versions: 2022) was added. ([#104438](https://github.com/kubernetes/kubernetes/pull/104438), [@nick5616](https://github.com/nick5616))

# 3.5

* Run the container image as non root user per default ([#97963](https://github.com/kubernetes/kubernetes/pull/97963))
Expand Down
2 changes: 1 addition & 1 deletion cluster/gce/config-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export WINDOWS_KUBEPROXY_KUBECONFIG_FILE="${WINDOWS_K8S_DIR}\kubeproxy.kubeconfi
# Path for kube-proxy kubeconfig file on Windows nodes.
export WINDOWS_NODEPROBLEMDETECTOR_KUBECONFIG_FILE="${WINDOWS_K8S_DIR}\node-problem-detector.kubeconfig"
# Pause container image for Windows container.
export WINDOWS_INFRA_CONTAINER="k8s.gcr.io/pause:3.5"
export WINDOWS_INFRA_CONTAINER="k8s.gcr.io/pause:3.6"
# Storage Path for csi-proxy. csi-proxy only needs to be installed for Windows.
export CSI_PROXY_STORAGE_PATH="https://storage.googleapis.com/gke-release/csi-proxy"
# Version for csi-proxy
Expand Down
2 changes: 1 addition & 1 deletion cluster/gce/windows/smoke-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ spec:
spec:
containers:
- name: pause-win
image: k8s.gcr.io/pause:3.5
image: k8s.gcr.io/pause:3.6
nodeSelector:
kubernetes.io/os: windows
tolerations:
Expand Down
2 changes: 1 addition & 1 deletion cmd/kubeadm/app/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ const (
ModeNode string = "Node"

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

// CgroupDriverSystemd holds the systemd driver type
CgroupDriverSystemd = "systemd"
Expand Down
4 changes: 2 additions & 2 deletions cmd/kubeadm/app/phases/kubelet/flags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ func TestBuildKubeletArgMap(t *testing.T) {
nodeRegOpts: &kubeadmapi.NodeRegistrationOptions{
CRISocket: "/var/run/dockershim.sock",
},
pauseImage: "gcr.io/pause:3.5",
pauseImage: "k8s.gcr.io/pause:3.6",
},
expected: map[string]string{
"network-plugin": "cni",
"pod-infra-container-image": "gcr.io/pause:3.5",
"pod-infra-container-image": "k8s.gcr.io/pause:3.6",
},
},
}
Expand Down
6 changes: 3 additions & 3 deletions cmd/kubeadm/app/util/template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (
)

const (
validTmpl = "image: {{ .ImageRepository }}/pause:3.5"
validTmplOut = "image: k8s.gcr.io/pause:3.5"
doNothing = "image: k8s.gcr.io/pause:3.5"
validTmpl = "image: {{ .ImageRepository }}/pause:3.6"
validTmplOut = "image: k8s.gcr.io/pause:3.6"
doNothing = "image: k8s.gcr.io/pause:3.6"
invalidTmpl1 = "{{ .baz }/d}"
invalidTmpl2 = "{{ !foobar }}"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/kubelet/app/options/container_runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
const (
// When these values are updated, also update test/utils/image/manifest.go
defaultPodSandboxImageName = "k8s.gcr.io/pause"
defaultPodSandboxImageVersion = "3.5"
defaultPodSandboxImageVersion = "3.6"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion hack/testdata/filter/pod-apply-selector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ metadata:
spec:
containers:
- name: kubernetes-pause
image: k8s.gcr.io/pause:3.5
image: k8s.gcr.io/pause:3.6
2 changes: 1 addition & 1 deletion hack/testdata/filter/pod-dont-apply.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ metadata:
spec:
containers:
- name: kubernetes-pause
image: k8s.gcr.io/pause:3.5
image: k8s.gcr.io/pause:3.6
2 changes: 1 addition & 1 deletion hack/testdata/multi-resource-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ metadata:
spec:
containers:
- name: kubernetes-pause
image: k8s.gcr.io/pause:3.5
image: k8s.gcr.io/pause:3.6
---
apiVersion: v1
kind: Namespace
Expand Down
6 changes: 3 additions & 3 deletions hack/testdata/multi-resource-3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
spec:
containers:
- name: kubernetes-pause
image: k8s.gcr.io/pause:3.5
image: k8s.gcr.io/pause:3.6
---
apiVersion: v1
kind: Pod
Expand All @@ -17,7 +17,7 @@ metadata:
spec:
containers:
- name: kubernetes-pause
image: k8s.gcr.io/pause:3.5
image: k8s.gcr.io/pause:3.6
---
apiVersion: v1
kind: Pod
Expand All @@ -26,5 +26,5 @@ metadata:
spec:
containers:
- name: kubernetes-pause
image: k8s.gcr.io/pause:3.5
image: k8s.gcr.io/pause:3.6

2 changes: 1 addition & 1 deletion hack/testdata/multi-resource-json-modify.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"spec":{
"containers":[{
"name": "mock-container",
"image": "k8s.gcr.io/pause:3.5",
"image": "k8s.gcr.io/pause:3.6",
"ports":[{
"containerPort":9949,
"protocol":"TCP"
Expand Down
2 changes: 1 addition & 1 deletion hack/testdata/multi-resource-json.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"spec":{
"containers":[{
"name": "mock-container",
"image": "k8s.gcr.io/pause:3.5",
"image": "k8s.gcr.io/pause:3.6",
"ports":[{
"containerPort":9949,
"protocol":"TCP"
Expand Down
2 changes: 1 addition & 1 deletion hack/testdata/multi-resource-list-modify.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"spec":{
"containers":[{
"name": "mock-container",
"image": "k8s.gcr.io/pause:3.5",
"image": "k8s.gcr.io/pause:3.6",
"ports":[{
"containerPort":9949,
"protocol":"TCP"
Expand Down
2 changes: 1 addition & 1 deletion hack/testdata/multi-resource-list.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"spec":{
"containers":[{
"name": "mock-container",
"image": "k8s.gcr.io/pause:3.5",
"image": "k8s.gcr.io/pause:3.6",
"ports":[{
"containerPort":9949,
"protocol":"TCP"
Expand Down
4 changes: 2 additions & 2 deletions hack/testdata/multi-resource-rclist-modify.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"spec":{
"containers":[{
"name": "mock-container",
"image": "k8s.gcr.io/pause:3.5",
"image": "k8s.gcr.io/pause:3.6",
"ports":[{
"containerPort":9949,
"protocol":"TCP"
Expand Down Expand Up @@ -60,7 +60,7 @@
"spec":{
"containers":[{
"name": "mock-container",
"image": "k8s.gcr.io/pause:3.5",
"image": "k8s.gcr.io/pause:3.6",
"ports":[{
"containerPort":9949,
"protocol":"TCP"
Expand Down
4 changes: 2 additions & 2 deletions hack/testdata/multi-resource-rclist.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"spec":{
"containers":[{
"name": "mock-container",
"image": "k8s.gcr.io/pause:3.5",
"image": "k8s.gcr.io/pause:3.6",
"ports":[{
"containerPort":9949,
"protocol":"TCP"
Expand Down Expand Up @@ -60,7 +60,7 @@
"spec":{
"containers":[{
"name": "mock-container",
"image": "k8s.gcr.io/pause:3.5",
"image": "k8s.gcr.io/pause:3.6",
"ports":[{
"containerPort":9949,
"protocol":"TCP"
Expand Down
2 changes: 1 addition & 1 deletion hack/testdata/multi-resource-yaml-modify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
spec:
containers:
- name: mock-container
image: k8s.gcr.io/pause:3.5
image: k8s.gcr.io/pause:3.6
ports:
- containerPort: 9949
protocol: TCP
2 changes: 1 addition & 1 deletion hack/testdata/multi-resource-yaml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
spec:
containers:
- name: mock-container
image: k8s.gcr.io/pause:3.5
image: k8s.gcr.io/pause:3.6
ports:
- containerPort: 9949
protocol: TCP
2 changes: 1 addition & 1 deletion hack/testdata/pod-apply.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ metadata:
spec:
containers:
- name: kubernetes-pause
image: k8s.gcr.io/pause:3.5
image: k8s.gcr.io/pause:3.6
4 changes: 2 additions & 2 deletions hack/testdata/pod-with-precision.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"containers": [
{
"name": "kubernetes-pause",
"image": "k8s.gcr.io/pause:3.5"
"image": "k8s.gcr.io/pause:3.6"
}
],
"restartPolicy": "Never",
Expand All @@ -21,4 +21,4 @@
]
}
}
}
}
2 changes: 1 addition & 1 deletion hack/testdata/pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ metadata:
spec:
containers:
- name: kubernetes-pause
image: k8s.gcr.io/pause:3.5
image: k8s.gcr.io/pause:3.6
2 changes: 1 addition & 1 deletion hack/testdata/prune/a.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ metadata:
spec:
containers:
- name: kubernetes-pause
image: k8s.gcr.io/pause:3.5
image: k8s.gcr.io/pause:3.6
2 changes: 1 addition & 1 deletion hack/testdata/prune/b.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ metadata:
spec:
containers:
- name: kubernetes-pause
image: k8s.gcr.io/pause:3.5
image: k8s.gcr.io/pause:3.6
2 changes: 1 addition & 1 deletion hack/testdata/sorted-pods/sorted-pod1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
spec:
containers:
- name: kubernetes-pause2
image: k8s.gcr.io/pause:3.5
image: k8s.gcr.io/pause:3.6
resources:
requests:
memory: "64Mi"
Expand Down
2 changes: 1 addition & 1 deletion hack/testdata/sorted-pods/sorted-pod2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
spec:
containers:
- name: kubernetes-pause1
image: k8s.gcr.io/pause:3.5
image: k8s.gcr.io/pause:3.6
resources:
requests:
memory: "1G"
Expand Down
2 changes: 1 addition & 1 deletion hack/testdata/sorted-pods/sorted-pod3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ metadata:
spec:
containers:
- name: kubernetes-pause3
image: k8s.gcr.io/pause:3.5
image: k8s.gcr.io/pause:3.6
2 changes: 1 addition & 1 deletion pkg/kubelet/dockershim/docker_sandbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import (
)

const (
defaultSandboxImage = "k8s.gcr.io/pause:3.5"
defaultSandboxImage = "k8s.gcr.io/pause:3.6"

// Various default sandbox resources requests/limits.
defaultSandboxCPUshares int64 = 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
spec:
containers:
- name: mock-container
image: k8s.gcr.io/pause:3.5
image: k8s.gcr.io/pause:3.6
---
apiVersion: v1
kind: ReplicationController
Expand All @@ -30,4 +30,4 @@ spec:
spec:
containers:
- name: mock-container
image: k8s.gcr.io/pause:3.5
image: k8s.gcr.io/pause:3.6
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ spec:
spec:
containers:
- name: mock-container
image: k8s.gcr.io/pause:3.5
image: k8s.gcr.io/pause:3.6
4 changes: 2 additions & 2 deletions test/cmd/core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -537,9 +537,9 @@ run_pod_tests() {
kube::test::get_object_assert pods "{{range.items}}{{$image_field}}:{{end}}" 'changed-with-yaml:'
## Patch pod from JSON can change image
# Command
kubectl patch "${kube_flags[@]}" -f test/fixtures/doc-yaml/admin/limitrange/valid-pod.yaml -p='{"spec":{"containers":[{"name": "kubernetes-serve-hostname", "image": "k8s.gcr.io/pause:3.5"}]}}'
kubectl patch "${kube_flags[@]}" -f test/fixtures/doc-yaml/admin/limitrange/valid-pod.yaml -p='{"spec":{"containers":[{"name": "kubernetes-serve-hostname", "image": "k8s.gcr.io/pause:3.6"}]}}'
# Post-condition: valid-pod POD has expected image
kube::test::get_object_assert pods "{{range.items}}{{$image_field}}:{{end}}" 'k8s.gcr.io/pause:3.5:'
kube::test::get_object_assert pods "{{range.items}}{{$image_field}}:{{end}}" 'k8s.gcr.io/pause:3.6:'

# pod has field for kubectl patch field manager
output_message=$(kubectl get pod valid-pod -o=jsonpath='{.metadata.managedFields[*].manager}' "${kube_flags[@]:?}" 2>&1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ spec:
- name: root-mount
mountPath: /root
containers:
- image: "k8s.gcr.io/pause:3.5"
- image: "k8s.gcr.io/pause:3.6"
name: pause

4 changes: 2 additions & 2 deletions test/fixtures/pkg/kubectl/cmd/set/multi-resource-yaml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
spec:
containers:
- name: mock-container
image: k8s.gcr.io/pause:3.5
image: k8s.gcr.io/pause:3.6
---
apiVersion: v1
kind: ReplicationController
Expand All @@ -30,4 +30,4 @@ spec:
spec:
containers:
- name: mock-container
image: k8s.gcr.io/pause:3.5
image: k8s.gcr.io/pause:3.6
2 changes: 1 addition & 1 deletion test/fixtures/pkg/kubectl/cmd/set/namespaced-resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ spec:
spec:
containers:
- name: mock-container
image: k8s.gcr.io/pause:3.5
image: k8s.gcr.io/pause:3.6
2 changes: 1 addition & 1 deletion test/integration/benchmark-controller.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"spec": {
"containers": [{
"name": "test-container",
"image": "k8s.gcr.io/pause:3.5"
"image": "k8s.gcr.io/pause:3.6"
}]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ metadata:
generateName: pod-churn-
spec:
containers:
- image: k8s.gcr.io/pause:3.5
- image: k8s.gcr.io/pause:3.6
name: pause
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
matchLabels:
team: devops
containers:
- image: k8s.gcr.io/pause:3.4.1
- image: k8s.gcr.io/pause:3.6
name: pause
ports:
- containerPort: 80
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
matchLabels:
team: devops
containers:
- image: k8s.gcr.io/pause:3.4.1
- image: k8s.gcr.io/pause:3.6
name: pause
ports:
- containerPort: 80
Expand Down
2 changes: 1 addition & 1 deletion test/integration/scheduler_perf/config/pod-default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
generateName: pod-
spec:
containers:
- image: k8s.gcr.io/pause:3.5
- image: k8s.gcr.io/pause:3.6
name: pause
ports:
- containerPort: 80
Expand Down