-
Notifications
You must be signed in to change notification settings - Fork 547
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
rbd: implement CSI-Addons ControllerGetVolumeGroup operation #4733
Conversation
9634980
to
a09f93d
Compare
vg, err := mgr.GetVolumeGroupByID(ctx, req.GetVolumeGroupId()) | ||
if err != nil { | ||
return nil, status.Errorf( | ||
codes.NotFound, |
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.
@nixpanic what about the case where we have invalid secret or missing secret etc? do we need to consider it as not found?
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.
Actually, the only error that is documented in the spec is NOT_FOUND
. The error description will contain more details on why the volume group could not be found.
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.
Lets revisit this later. 👍🏻
@Mergifyio queue |
🛑 The pull request has been removed from the queue
|
With the ControllerGetVolumeGroup operation the caller can verify that a VolumeGroup exists, and validate the volumes that are part of it. Signed-off-by: Niels de Vos <ndevos@ibm.com>
a09f93d
to
94bef9c
Compare
/test ci/centos/k8s-e2e-external-storage/1.29 |
/test ci/centos/mini-e2e-helm/k8s-1.29 |
/test ci/centos/mini-e2e/k8s-1.29 |
/test ci/centos/upgrade-tests-cephfs |
/test ci/centos/k8s-e2e-external-storage/1.28 |
/test ci/centos/upgrade-tests-rbd |
/test ci/centos/mini-e2e-helm/k8s-1.28 |
/test ci/centos/k8s-e2e-external-storage/1.27 |
/test ci/centos/k8s-e2e-external-storage/1.30 |
/test ci/centos/mini-e2e/k8s-1.28 |
/test ci/centos/mini-e2e-helm/k8s-1.27 |
/test ci/centos/mini-e2e-helm/k8s-1.30 |
/test ci/centos/mini-e2e/k8s-1.27 |
/test ci/centos/mini-e2e/k8s-1.30 |
/retest ci/centos/mini-e2e/k8s-1.27 |
@Mergifyio requeue ci/centos/mini-e2e/k8s-1.27 failed to clone the git repository |
☑️ This pull request is already queued |
With the ControllerGetVolumeGroup operation the caller can verify that a
VolumeGroup exists, and validate the volumes that are part of it.