-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
oc new-app --search: don't require docker hub access #11436
oc new-app --search: don't require docker hub access #11436
Conversation
[test] |
flake #11240 |
#11240 and yum failure |
@bparees PTAL |
@@ -213,6 +213,8 @@ func (s ImageImportSearcher) Search(precise bool, terms ...string) (ComponentMat | |||
if image.Status.Status != unversioned.StatusSuccess { | |||
glog.V(4).Infof("image import failed: %#v", image) | |||
switch image.Status.Reason { | |||
case unversioned.StatusReasonInternalError: | |||
glog.Warningf("Image lookup failed: %s", image.Status.Message) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/Image/Docker registry/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
When using oc new-app --search in environment where OpenShift server could not reach Docker Hub, oc new-app --search had failed for any query. This commit changes the behavior to print a warning and continue with what was found in other sources. Fixes bug 1378647.
ed2ed70
to
1c53eba
Compare
Evaluated for origin test up to 1c53eba |
continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10293/) (Base Commit: 7405f17) |
^ yum error |
[merge] |
Evaluated for origin merge up to 1c53eba |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10383/) (Base Commit: 87f1f55) (Image: devenv-rhel7_5215) |
When using oc new-app --search in environment where OpenShift server could not reach Docker Hub, oc new-app --search had failed for any query. This commit changes the behavior to print a warning and continue with what was found in other sources.
Fixes bug 1378647.