mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-03 10:17:46 +00:00
Set default vmtype to standard if not set
This commit is contained in:
@@ -160,6 +160,11 @@ func NewCloud(configReader io.Reader) (cloudprovider.Interface, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if config.VMType == "" {
|
||||||
|
// default to standard vmType if not set.
|
||||||
|
config.VMType = vmTypeStandard
|
||||||
|
}
|
||||||
|
|
||||||
env, err := auth.ParseAzureEnvironment(config.Cloud)
|
env, err := auth.ParseAzureEnvironment(config.Cloud)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
@@ -864,6 +864,7 @@ func getTestCloud() (az *Cloud) {
|
|||||||
RouteTableName: "rt",
|
RouteTableName: "rt",
|
||||||
PrimaryAvailabilitySetName: "as",
|
PrimaryAvailabilitySetName: "as",
|
||||||
MaximumLoadBalancerRuleCount: 250,
|
MaximumLoadBalancerRuleCount: 250,
|
||||||
|
VMType: vmTypeStandard,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
az.DisksClient = newFakeDisksClient()
|
az.DisksClient = newFakeDisksClient()
|
||||||
|
Reference in New Issue
Block a user