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

[Doc] return object type on delete, not status #5782

Merged
merged 1 commit into from May 22, 2024

Conversation

drewmullen
Copy link
Contributor

@drewmullen drewmullen commented May 9, 2024

Resolves: #5781, #5528

Copy link
Contributor

@m-ildefons m-ildefons left a comment

Choose a reason for hiding this comment

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

LGTM.

This fixes the DELETE operation, but keep in mind that Kubernetes also knows a DELETECOLLECTION operation.
The way this works is that a delete request is issued, but the URL path does not contain a specific name for the DELETECOLLECTION operation, but rather a selector (like a label-selector) is passed as URL parameter. All objects that match this selector are then deleted in bulk.
The DELETECOLLECTION operation does indeed return a Status object.
As far as I can tell, we don't have this operation documented at all though.

@drewmullen
Copy link
Contributor Author

Harvester API returns a list of VMs deleted when you call DELETECOLLECTION. But, as you said, that action isn’t documented

Copy link
Contributor

@Yu-Jack Yu-Jack left a comment

Choose a reason for hiding this comment

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

LGTM

@bk201 bk201 merged commit fe079f3 into harvester:master May 22, 2024
5 checks passed
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.

[BUG] Delete PVC should return PVC not status
4 participants