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

dynamic host volumes: test client RPC and plugins #24535

Merged
merged 4 commits into from
Nov 22, 2024

Conversation

gulducat
Copy link
Member

@gulducat gulducat commented Nov 21, 2024

adding tests for #24497

also happened to notice we weren't validating that volume ID was uuid-shaped, so add that too.

main issue: #24479

Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -167,7 +171,7 @@ func (hv *HostVolume) Validate() error {
}
}

return mErr.ErrorOrNil()
return helper.FlattenMultierror(mErr.ErrorOrNil())
Copy link
Member

Choose a reason for hiding this comment

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

Nice QoL catch.

client/hostvolumemanager/host_volume_plugin_test.go Outdated Show resolved Hide resolved

plug := &HostVolumePluginMkdir{
ID: "test-mkdir-plugin",
TargetPath: tmp,
Copy link
Member

Choose a reason for hiding this comment

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

This makes me realize that calling this field "target path" is maybe a little misleading, as it's the parent of the eventual target path.

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, aside from "target", even "path" is ambiguous: could signify either a file or a dir. I'll be in this vicinity again with fingerprinting, so I'll keep this in mind.

@gulducat gulducat merged commit fd01ac7 into dynamic-host-volumes Nov 22, 2024
17 checks passed
@gulducat gulducat deleted the dhv-plugins-test branch November 22, 2024 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants