-
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 support for "hidden" tag in imagestreams #12100
oc new-app support for "hidden" tag in imagestreams #12100
Conversation
|
@@ -143,6 +143,13 @@ func (r ImageStreamSearcher) Search(precise bool, terms ...string) (ComponentMat | |||
} | |||
foundOtherTags = true | |||
|
|||
// This check after foundOtherTags = true, because in the case that | |||
// we have an ImageStream with all tags hidden, we should behave as | |||
// if it didn't exist at all. |
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.
why are we claiming we found other tags if we're trying to act like they don't exist?
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.
ah i guess i see it's because if we didn't "find other tags" then it's going to create a match for the imagestream.
if we did find other tags (or lie about having found them), then it will not create that match.
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.
The comment I added in the code clearly didn't help much! I've rewritten the comment; maybe it'll be more useful the second time around. This corner is also covered by a test case.
aside from the formatting issue, lgtm. |
@jwforres fyi |
f5b1b07
to
7843f21
Compare
ah, my editor doesn't automatically apply gofmt -s simplifications. |
7843f21
to
357d864
Compare
@bparees all changes made |
357d864
to
1fbb556
Compare
Evaluated for origin test up to 1fbb556 |
Are the OOTB 1.5 imagestreams going to have images with the hidden tag
…On Dec 1, 2016 4:31 PM, "Ben Parees" ***@***.***> wrote:
@jwforres <https://github.com/jwforres> fyi
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12100 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABZk7RxFcqT5ur_X0ccT0k6XYyVDdLGsks5rDzy5gaJpZM4LBzI0>
.
|
@jwforres I don't know if it answers your question, but nodejs 0.10 is already marked hidden in master today, see examples/image-streams/image-streams-centos7.json: {
"name": "0.10",
"annotations": {
"openshift.io/display-name": "Node.js 0.10",
"description": "DEPRECATED: Build and run Node.js 0.10 applications on CentOS 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-nodejs-container/blob/master/0.10/README.md.",
"iconClass": "icon-nodejs",
"tags": "hidden,nodejs",
"supports":"nodejs:0.10,nodejs:0.1,nodejs",
"version": "0.10",
"sampleRepo": "https://github.com/openshift/nodejs-ex.git"
},
"from": {
"kind": "DockerImage",
"name": "openshift/nodejs-010-centos7:latest"
}
}, |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/11923/) (Base Commit: 7b90443) |
@jwforres as @jim-minter said, we've already put the tag on the nodejs 0.10 imagestreams, so assuming things get refreshed properly for 1.5, the answer is yes (in fact if they get refreshed again before 1.4 then even 1.4 will have it, as will anyone using master) |
lgtm [merge] |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/11923/) (Image: devenv-rhel7_5466) |
Evaluated for origin merge up to 1fbb556 |
https://trello.com/c/h5JLGnNk/1089-3-support-hidden-tag-on-imagestreamtags-app-creation
[test]