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

Unify DELETE request handling for clusters and node pools #763

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

mbarnes
Copy link
Collaborator

@mbarnes mbarnes commented Oct 24, 2024

What this PR does

Our DELETE request handlers for clusters and node pools were nearly identical. With the addition of a frontend helper method DeleteResource we can now unify the request handlers and eliminate a fair amount of duplicate code.

Jira: none; refactoring work
Link to demo recording:

Special notes for your reviewer

Copy link

Please rebase pull request.

Matthew Barnes added 2 commits October 29, 2024 16:31
Similar to MarshalResource, this method takes a resource ID and
calls the appropriate Cluster Service method to request deletion
of the resource.
With the DeleteResource method, the logic flow for handling DELETE
requests for clusters and node pools is now identical.
@SudoBrendan SudoBrendan merged commit 26d65cf into main Oct 29, 2024
26 checks passed
@SudoBrendan SudoBrendan deleted the delete-resource branch October 29, 2024 20:38
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.

2 participants