mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 11:25:19 +00:00
Merge pull request #29122 from ronnielai/image-gc-1-1
Automatic merge from submit-queue Syncing imaging pulling backoff logic - Syncing the backoff logic in the parallel image puller and the sequential image puller to prepare for merging the two pullers into one. - Moving image error definitions under kubelet/images
This commit is contained in:
@@ -57,6 +57,7 @@ import (
|
||||
"k8s.io/kubernetes/pkg/kubelet/envvars"
|
||||
"k8s.io/kubernetes/pkg/kubelet/events"
|
||||
"k8s.io/kubernetes/pkg/kubelet/eviction"
|
||||
"k8s.io/kubernetes/pkg/kubelet/images"
|
||||
"k8s.io/kubernetes/pkg/kubelet/lifecycle"
|
||||
"k8s.io/kubernetes/pkg/kubelet/metrics"
|
||||
"k8s.io/kubernetes/pkg/kubelet/network"
|
||||
@@ -2574,9 +2575,9 @@ func (kl *Kubelet) validateContainerLogStatus(podName string, podStatus *api.Pod
|
||||
case waiting != nil:
|
||||
// output some info for the most common pending failures
|
||||
switch reason := waiting.Reason; reason {
|
||||
case kubecontainer.ErrImagePull.Error():
|
||||
case images.ErrImagePull.Error():
|
||||
return kubecontainer.ContainerID{}, fmt.Errorf("container %q in pod %q is waiting to start: image can't be pulled", containerName, podName)
|
||||
case kubecontainer.ErrImagePullBackOff.Error():
|
||||
case images.ErrImagePullBackOff.Error():
|
||||
return kubecontainer.ContainerID{}, fmt.Errorf("container %q in pod %q is waiting to start: trying and failing to pull image", containerName, podName)
|
||||
default:
|
||||
return kubecontainer.ContainerID{}, fmt.Errorf("container %q in pod %q is waiting to start: %v", containerName, podName, reason)
|
||||
|
||||
Reference in New Issue
Block a user