-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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_obj: Allow for multiple kinds in delete #3968
Conversation
@kwoodson @ashcrow Maybe. I just went with the |
I think a list would be cleaner, but I think a |
I think the comma-separated string format could be OK. That's how the command line expects to take arguments, right? So it's consistent with that. But, this is a computer program, and a user might expect to provide a series of items as a I'm good with either way. Obviously if it changes to accepting a If we stick with the comma separated string then I would like to see |
Updated the documentation as requested by @tbielawa. |
|
Signed-off-by: Jose A. Rivera <[email protected]>
@ashcrow Yup, just caught that. :) Addressed and updated. |
# verify results are empty for the selector | ||
if params['selector'] is not None and len(api_rval['results']) == 0: | ||
# verify its not in our results | ||
if (params['name'] is not None or params['selector'] is not None) and \ |
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.
I actually prefer the logic in 2 separate steps as its more clear to me what's happening.
I won't block on this.
aos-ci-test |
[merge] |
Evaluated for openshift ansible merge up to 914200d |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_openshift_ansible/285/) (Base Commit: d4d1437) |
This is to allow "kind" to include a string like "svc,ep" to delete both Services and Endpoints matching a given name or selector.
Signed-off-by: Jose A. Rivera [email protected]