mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00: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
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user