change default kind value of azure disk pv

make a const for default azure disk kind
This commit is contained in:
andyzhangx 2017-10-24 07:11:52 +00:00
parent 3e694c38e0
commit 9bcb82df6e

View File

@ -37,6 +37,7 @@ import (
const ( const (
defaultFSType = "ext4" defaultFSType = "ext4"
defaultStorageAccountType = storage.StandardLRS defaultStorageAccountType = storage.StandardLRS
defaultAzureDiskKind = v1.AzureSharedBlobDisk
) )
type dataDisk struct { type dataDisk struct {
@ -116,7 +117,7 @@ func normalizeFsType(fsType string) string {
func normalizeKind(kind string) (v1.AzureDataDiskKind, error) { func normalizeKind(kind string) (v1.AzureDataDiskKind, error) {
if kind == "" { if kind == "" {
return v1.AzureDedicatedBlobDisk, nil return defaultAzureDiskKind, nil
} }
if !supportedDiskKinds.Has(kind) { if !supportedDiskKinds.Has(kind) {