-
Notifications
You must be signed in to change notification settings - Fork 648
[cinder-csi-plugin] Use context #2864
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
base: master
Are you sure you want to change the base?
Conversation
f264505
to
7159398
Compare
7159398
to
489855e
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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
Looks like an oversight in commit 7bfb2eb. Signed-off-by: Stephen Finucane <[email protected]>
This confused me. It might confuse others. Signed-off-by: Stephen Finucane <[email protected]>
Signed-off-by: Stephen Finucane <[email protected]>
489855e
to
ad7fffa
Compare
New changes are detected. LGTM label has been removed. |
return accessibleTopology | ||
} | ||
|
||
func getCreateVolumeResponse(vol *volumes.Volume, volCtx map[string]string, accessibleTopology []*csi.Topology) *csi.CreateVolumeResponse { |
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.
we need to cover the cases, when the volCtx
argument is nil
, e.g.
return getCreateVolumeResponse(&vols[0], nil, accessibleTopology), nil |
What this PR does / why we need it:
Use the generated VolumeContext.
Which issue this PR fixes(if applicable):
fixes #2863
Special notes for reviewers:
Release note: