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

Use a different verb for delete collection #21005

Merged
merged 1 commit into from
Feb 14, 2016

Conversation

liggitt
Copy link
Member

@liggitt liggitt commented Feb 10, 2016

Congruent with list having a separate verb from get, deleting an entire collection of objects should have a different verb than delete.

Added in #18290.

@k8s-github-robot
Copy link

Labelling this PR as size/S

@k8s-github-robot k8s-github-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Feb 10, 2016
@liggitt
Copy link
Member Author

liggitt commented Feb 10, 2016

@kubernetes/kube-iam @derekwaynecarr @wojtek-t

@derekwaynecarr
Copy link
Member

I would avoid deleteall and favor deletecollection since I can imagine DeleteOptions taking a label selector or field selector in the future to scope the set of things it deletes to those that matched.

@liggitt
Copy link
Member Author

liggitt commented Feb 10, 2016

updated

@k8s-bot
Copy link

k8s-bot commented Feb 10, 2016

GCE e2e test build/test passed for commit 777a66f0269200d289671d14d700ba878f36204b.

@k8s-bot
Copy link

k8s-bot commented Feb 10, 2016

GCE e2e test build/test passed for commit 2cea0048ac2930ba8963b5a83bd07eb7db833bf7.

@lavalamp
Copy link
Member

Seems like a big change this late for 1.2, but LGTM unless @erictune sees any problems.

@lavalamp lavalamp assigned erictune and unassigned lavalamp Feb 10, 2016
@k8s-bot
Copy link

k8s-bot commented Feb 10, 2016

GCE e2e test build/test passed for commit 3038eec.

@liggitt
Copy link
Member Author

liggitt commented Feb 11, 2016

Sorry for the lateness, I didn't notice the addition when it first went in. Delete currently requires knowledge of the resource name, whereas deletecollection does not, which is the main reason it needs a different verb (apart from the get/list congruence)

@derekwaynecarr
Copy link
Member

For context, the namespace controller makes heavy use of delete collection now during namespace termination.

@wojtek-t
Copy link
Member

LGTM - thanks @liggitt

@deads2k
Copy link
Contributor

deads2k commented Feb 11, 2016

lgtm.

@k8s-bot
Copy link

k8s-bot commented Feb 11, 2016

GCE e2e test build/test passed for commit 3038eec.

@liggitt liggitt added this to the v1.2-candidate milestone Feb 11, 2016
@liggitt
Copy link
Member Author

liggitt commented Feb 11, 2016

would like this considered for 1.2 before we release a version with collection deletion

@bgrant0607
Copy link
Member

Ref #10217

@bgrant0607 bgrant0607 modified the milestones: v1.2, v1.2-candidate Feb 12, 2016
@erictune
Copy link
Member

LGTM

@erictune erictune added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 12, 2016
@erictune
Copy link
Member

@cjcullen FYI there is now a new verb for when you delete several things rather than a named thing.

@k8s-github-robot
Copy link

@k8s-bot test this

Tests are more than 48 hours old. Re-running tests.

@erictune
Copy link
Member

This appears safe for ABAC users because the delete verb is not exposed to them, and the IsReadOnly check does not look at delete.

@k8s-bot
Copy link

k8s-bot commented Feb 13, 2016

GCE e2e test build/test passed for commit 3038eec.

@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented Feb 14, 2016

GCE e2e test build/test passed for commit 3038eec.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

k8s-github-robot pushed a commit that referenced this pull request Feb 14, 2016
@k8s-github-robot k8s-github-robot merged commit 38e8270 into kubernetes:master Feb 14, 2016
@liggitt liggitt deleted the delete-all branch February 15, 2016 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.