mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 15:05:20 +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:
@@ -37,6 +37,7 @@ import (
|
||||
"k8s.io/kubernetes/pkg/credentialprovider"
|
||||
kubecontainer "k8s.io/kubernetes/pkg/kubelet/container"
|
||||
containertest "k8s.io/kubernetes/pkg/kubelet/container/testing"
|
||||
"k8s.io/kubernetes/pkg/kubelet/images"
|
||||
"k8s.io/kubernetes/pkg/kubelet/network"
|
||||
nettest "k8s.io/kubernetes/pkg/kubelet/network/testing"
|
||||
"k8s.io/kubernetes/pkg/types"
|
||||
@@ -225,7 +226,7 @@ func TestPullWithJSONError(t *testing.T) {
|
||||
"Bad gateway": {
|
||||
"ubuntu",
|
||||
&jsonmessage.JSONError{Code: 502, Message: "<!doctype html>\n<html class=\"no-js\" lang=\"\">\n <head>\n </head>\n <body>\n <h1>Oops, there was an error!</h1>\n <p>We have been contacted of this error, feel free to check out <a href=\"http://status.docker.com/\">status.docker.com</a>\n to see if there is a bigger issue.</p>\n\n </body>\n</html>"},
|
||||
kubecontainer.RegistryUnavailable.Error(),
|
||||
images.RegistryUnavailable.Error(),
|
||||
},
|
||||
}
|
||||
for i, test := range tests {
|
||||
|
||||
Reference in New Issue
Block a user