-
Notifications
You must be signed in to change notification settings - Fork 143
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
feat: support VolumeExpansion in OFFLINE scenario #121
Conversation
/hold |
pkg/azurefile/controllerserver.go
Outdated
volumeID := req.VolumeId | ||
shareURL, err := d.getShareUrl(volumeID) | ||
if err != nil { | ||
klog.V(4).Infof("failed to get share url with (%s): %v, returning with success", volumeID, err) |
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.
klog.Errorf
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.
why returning success here? by sanity test?
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.
Oh, it is my fault. It should fail here.
pkg/azurefile/controllerserver.go
Outdated
return &csi.ControllerExpandVolumeResponse{}, nil | ||
} | ||
|
||
_, err = shareURL.SetQuota(ctx, requestGiB) |
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.
if _, err = shareURL.SetQuota(ctx, requestGiB); err != 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.
done.
I will update the version of They will be fixed in another PR. |
18b1309
to
2464c31
Compare
Signed-off-by: ZeroMagic <[email protected]>
/ok-to-test |
@ZeroMagic: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
/hold cancel |
/retest |
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
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andyzhangx, ZeroMagic The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
btw, what's the |
According to the developer documentation(https://kubernetes-csi.github.io/docs/volume-expansion.html#implementing-volume-expansion-functionality) So we will call ControllerExpandVolume RPC in the OFFLINE scenario, and call the NodeExpandVolume RPC in the ONLINE scenario. |
@ZeroMagic azure file should support online scenario, while azure disk only supports offline |
fix: return empty when the specify snapshot id does not exist
What type of PR is this?
/kind feature
What this PR does / why we need it:
support VolumeExpansion in OFFLINE scenario
Which issue(s) this PR fixes:
Fixes #43
Special notes for your reviewer:
Release note: