-
Notifications
You must be signed in to change notification settings - Fork 94
Refactor: migrate blobclient to track2 sdk and fix ut cases #1169
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
Refactor: migrate blobclient to track2 sdk and fix ut cases #1169
Conversation
|
/retest |
1 similar comment
|
/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.
@cvvz could you also take a look at this PR? thanks.
|
all the 3 Azure CSI drivers supports empty cloud provider config, e.g. blob-csi-driver/pkg/blob/azure.go Lines 97 to 98 in 703d8dd
we need to make sure if there is no cloud provider config provided, this driver won't crash. |
|
If the cloud config is nil, the blob client is nil. How do we check volume capabilities in this scenario? @andyzhangx |
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 the cloud config is nil, the blob client is nil. How do we check volume capabilities in this scenario? @andyzhangx
I believe k8s and sidecars actually never call ValidateVolumeCapabilities, although CSI spec requires CSI driver to implement it...
If the cloud config is nil, then user should provide secrets(bring your own account key scenario), |
Yes, but it can be very easy to make csi driver crash (rather than throw error) once csi driver walk into the code that use |
then we should check whether |
Signed-off-by: Fan Shang Xiang <[email protected]>
|
/retest |
1 similar comment
|
/retest |
@cvvz could you take a look at this PR? any concern about blobclient issue? |
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
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andyzhangx, MartinForReal 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 |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Refactor: migrate blobclient to track2 sdk and fix ut cases
Which issue(s) this PR fixes:
Fixes #
Requirements:
Special notes for your reviewer:
gomock controller is not closed after ut test is complete. This may miss unexpected function call error.
Release note: