-
Notifications
You must be signed in to change notification settings - Fork 39.8k
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
fix azure disk storage account init issue #55927
fix azure disk storage account init issue #55927
Conversation
@@ -330,41 +325,6 @@ func (c *BlobDiskController) init() error { | |||
} | |||
c.accounts = accounts | |||
|
|||
if len(c.accounts) == 0 { |
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.
Also update comment lines before init method
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.
fixed
@@ -543,13 +503,7 @@ func (c *BlobDiskController) getDiskCount(SAName string) (int, error) { | |||
// and we only do that in the controller | |||
|
|||
func (c *BlobDiskController) shouldInit() bool { |
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.
not needed?
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.
init() func removed
remove init func allow getStorageAccounts failed
00d1df8
to
3d60d18
Compare
/approve |
/assign @jdumars |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andyzhangx, jdumars, rootfs Associated issue: 54570 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Automatic merge from submit-queue (batch tested with PRs 55233, 55927, 55903, 54867, 55940). If you want to cherry-pick this change to another branch, please follow the instructions here. |
What this PR does / why we need it:
There are two issues for the original azure disk storage account initialaztion code:
This PR would fix the above two issues:
For 1: remove the controller-master process binding
For 2: remove the storage account initialization process, just create on demand
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #54570
Fixes #55776
Fixes #50883
Special notes for your reviewer:
@rootfs @karataliu
Release note:
/sig azure