-
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
Include namespace in determining new-app dup objects #4297
Conversation
What if I'm creating an app from an image stream in the current namespace where the output name is the same as the input name? |
you'll create a build loop |
should we stop you from shooting yourself in the foot? |
In this case, i don't know what the user expects, but they probably expect something. I only bring it up because there is an existing item and a dup in the same namespace, but the new object probably doesn't have namespace set while the old one does. So the acceptor won't think they're duplicates. |
ic, hmm, we wouldn't catch it... so you'd get an error saying it couldn't be saved because it's a dup, which I guess is ok? |
maybe? |
why doesn't the new object have namespace set? lgtm but not merging pending the outcome of this discussion. |
Mostly so you can -o yaml it and use it on another namespace. On Aug 20, 2015, at 6:33 PM, Ben Parees notifications@github.com wrote: why doesn't the new object have namespace set? lgtm but not merging pending the outcome of this discussion. — |
hm. would it make more sense to strip the namespace out when outputting yaml, instead of not setting one? |
Hmm, not sure that I see much benefit to it. IMHO that you get an error On Thu, Aug 20, 2015 at 9:35 PM, Ben Parees notifications@github.com
|
works for me. [merge] |
I think we need to get new-app handle existing resources more intelligently like warning you about duplicates and giving you options to overwrite/ignore/merge, but we should create a card for it :-) |
Evaluated for origin merge up to 40566ce |
[Test]ing while waiting on the merge queue |
Evaluated for origin test up to 40566ce |
Yeah, that's before we save but after we would output. But technically On Thu, Aug 20, 2015 at 9:45 PM, Cesar Wong notifications@github.com
Clayton Coleman | Lead Engineer, OpenShift |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/4400/) |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/3061/) (Image: devenv-fedora_2191) |
Merged by openshift-bot
Fixes #3947