-
Notifications
You must be signed in to change notification settings - Fork 600
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
rpk: add Redpanda Cloud support to rpk cluster storage
mount/unmount commands
#24134
Conversation
The new dependency version soft-deprecates the v1alpha2 services.
Downloading using go get is not recommended per golangci-lint docs
Now we will be able to run mount/unmount commands against Redpanda Cloud clusters using the dataplane API.
9129446
to
26e5aa3
Compare
/dt |
ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/58088#01932da0-c15d-40a0-b28d-93765d6dfb2e |
We should default to filter `all`, otherwise we won't print any operation unless a filter is provided.
72cad3a
to
8650b26
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
resp, err := cl.CloudStorage.ListMountTasks(cmd.Context(), connect.NewRequest(&dataplanev1alpha2.ListMountTasksRequest{})) | ||
out.MaybeDie(err, "unable to list mount/unmount operations: %v", err) | ||
|
||
if resp != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this conditional needed? MaybeDie
exits on error. Can this return nil, nil
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure, I was overly paranoid here to avoid a panic. resp
is a connect
wrapper of the response and I'm not sure if an empty list will produce an empty resp
.
And I prefer being a little bit paranoid as we don't control the result at all. Happy to remove it if we are 100% sure this doesn't return nil, nil
/backport v24.3.x |
This PR introduces the ability for rpk to execute the following
rpk cluster storage
commands against Redpanda Cloud Clusters:Examples:
Unmount
Mount
list-mount
list-mountable
status-mount
cancel-mount
Backports Required
Release Notes