-
Notifications
You must be signed in to change notification settings - Fork 167
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
add delete_collection api #541
Conversation
# :orphan_dependents (bool) - should the dependent objects be orphaned | ||
# :propagation_policy (string) - one of Foreground|Background|Orphan | ||
# :resource_version (string) - sets a limit on the resource versions that can be served | ||
# :resource_version_match (string) - determines how the resource_version constraint will be applied |
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.
lib/kubeclient.rb:481:101: C: Layout/LineLength: Line is too long. [105/100]
Opened #547 to add support resource_version_match
in other actions.
Sorry for delay. Generally looks good 👍 Please document this in README. Including what it returns (the content of the deleted resources?) because it's not entirely obvious. Let's see, how this compares to delete-single interface:
Not consistent but it mirrors the existing inconsistency between
Another point worth documenting: What happens if you omit
|
Delete collection is like get list, except it triggers a delete of the resources. It returns a list of all resources that match the call. I based this of the get entities like get_pods because it's roughly the same API except as a side effect it deletes all the resources.
fe00a28
to
6b4232e
Compare
I have rebased the PR since you last looked. DW, i'm even slower ;)
It returns the same thing as doing a
maybe, but it's no more dangerous than any other api IMHO. if you mistype it you get
so it won't accept any positional argument for a name.
Nothing, you get an error
I have updated all test cases to handle |
CI failures are just flaky timeouts. Close-cycling to re-run. |
Delete collection is like getting a list, except it triggers a delete of the
resources. It returns a list of all resources that match the call.
I based this of the get entities like get_pods because it's roughly
the same API except as a side effect it deletes all the resources.