mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-28 04:04:39 -04:00
change default kind value of azure disk pv
make a const for default azure disk kind
This commit is contained in:
parent
3e694c38e0
commit
9bcb82df6e
1 changed files with 2 additions and 1 deletions
|
|
@ -37,6 +37,7 @@ import (
|
|||
const (
|
||||
defaultFSType = "ext4"
|
||||
defaultStorageAccountType = storage.StandardLRS
|
||||
defaultAzureDiskKind = v1.AzureSharedBlobDisk
|
||||
)
|
||||
|
||||
type dataDisk struct {
|
||||
|
|
@ -116,7 +117,7 @@ func normalizeFsType(fsType string) string {
|
|||
|
||||
func normalizeKind(kind string) (v1.AzureDataDiskKind, error) {
|
||||
if kind == "" {
|
||||
return v1.AzureDedicatedBlobDisk, nil
|
||||
return defaultAzureDiskKind, nil
|
||||
}
|
||||
|
||||
if !supportedDiskKinds.Has(kind) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue