Skip to content
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

Allows filtering templates by namespace in new-app #10026

Merged
merged 1 commit into from
Jul 27, 2016

Conversation

fabianofranz
Copy link
Member

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1248362

This allows the use of the namespace/templatename form when specifying templates in new-app (it was already supported for image streams, but templates was lacking the support).

So for example if you have templates with the exact same name "jenkins" in both "mynamespace" and "openshift", you can be explicit about which one you want to use with

oc new-app --template=openshift/jenkins ...
oc new-app --template=mynamespace/jenkins -n wheretocreateit ...

@fabianofranz
Copy link
Member Author

@bparees @csrwng PTAL

@fabianofranz
Copy link
Member Author

[test]

return ref, nil
}

func (r TemplateReference) WithNamespace() bool {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/WithNamespace/HasNamespace/ ?

@bparees
Copy link
Contributor

bparees commented Jul 25, 2016

2 nits and lgtm

@fabianofranz
Copy link
Member Author

Comments addressed, [merge].

@openshift-bot
Copy link
Contributor

openshift-bot commented Jul 26, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/6958/) (Image: devenv-rhel7_4676)

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 0f6a3e0

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/6923/)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 0f6a3e0

@openshift-bot openshift-bot merged commit a9c3ad4 into openshift:master Jul 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants