Merge pull request #14182 from jiangyaoguo/distinguish-registry-unavailable-and-pull-failure

Auto commit by PR queue bot
This commit is contained in:
k8s-merge-robot
2015-10-16 16:22:22 -07:00
4 changed files with 11 additions and 3 deletions

View File

@@ -130,7 +130,7 @@ func filterHTTPError(err error, image string) error {
jerr.Code == http.StatusServiceUnavailable ||
jerr.Code == http.StatusGatewayTimeout) {
glog.V(2).Infof("Pulling image %q failed: %v", image, err)
return fmt.Errorf("image pull failed for %s because the registry is temporarily unavailable.", image)
return kubecontainer.RegistryUnavailable
} else {
return err
}