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

fix: avoid appending existing volumes #1154

Merged
merged 1 commit into from
Sep 17, 2022
Merged

fix: avoid appending existing volumes #1154

merged 1 commit into from
Sep 17, 2022

Conversation

s7m4b4
Copy link
Contributor

@s7m4b4 s7m4b4 commented Sep 17, 2022

What

Fixes #1151

Why

Subsequent ClusterGet calls will continue to append existing volumes.
As ClusterGet is called twice when running the delete cmd, this causes volumes in the array to be duplicated, which ends up throwing a false warning message.
This change adds a check to ClusterGet to ensure that only non appended volumes are added.

Implications

@iwilltry42
Copy link
Member

Thanks @s7m4b4 , one of the greatest things Generics brought to Go 😅

@iwilltry42 iwilltry42 merged commit 516fe7c into k3d-io:main Sep 17, 2022
@iwilltry42 iwilltry42 added this to the v5.5.0 milestone Sep 17, 2022
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.

False Warning message on cluster delete
2 participants