-
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 storage account num exhausting issue #54459
fix azure storage account num exhausting issue #54459
Conversation
/test pull-kubernetes-e2e-gce-device-plugin-gpu |
pkg/volume/azure_dd/azure_common.go
Outdated
@@ -116,7 +116,7 @@ func normalizeFsType(fsType string) string { | |||
|
|||
func normalizeKind(kind string) (v1.AzureDataDiskKind, error) { | |||
if kind == "" { | |||
return v1.AzureDedicatedBlobDisk, nil | |||
return v1.AzureSharedBlobDisk, 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.
Prefer to make a const for default kind and add doc around the default
make a const for default azure disk kind
6a95f03
to
9bcb82d
Compare
/test pull-kubernetes-bazel-test |
/lgtm |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: andyzhangx, rootfs No associated issue. Update pull-request body to add a reference to an issue, or get approval with 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 |
Signed-off-by: Huamin Chen <[email protected]>
Automatic merge from submit-queue (batch tested with PRs 53730, 51608, 54459, 54534, 54585). If you want to cherry-pick this change to another branch, please follow the instructions here. |
/release-note-none |
What this PR does / why we need it:
If customer is using the default storage class of azure-disk, create lots of azure disk pvs by using default storage class of azure-disk, the storage account num would be exhausted in the azure subscription. Change default
kind
value of azure disk storge class fromDedicated
toShared
, which means only a few storage accounts would be created even there are even hundreds of azure disk PVs.Which issue this PR fixes:
fixes #54669
fix storage account num exhausting issue when lots of azure disk pvs are created by using the default storage class of azure-disk
Special notes for your reviewer:
fix azure storage account num exhausting issue when lots of azure disk pvs are created by using the default storage class of azure-disk
I would suggest also cherry pick this fix to v1.7, v1.8
Release note:
/sig azure
@karataliu @rootfs @brendanburns