mirror of https://github.com/k3s-io/k3s
Set default vmtype to standard if not set
parent
07240b7166
commit
ce8615dab6
|
@ -160,6 +160,11 @@ func NewCloud(configReader io.Reader) (cloudprovider.Interface, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
if config.VMType == "" {
|
||||
// default to standard vmType if not set.
|
||||
config.VMType = vmTypeStandard
|
||||
}
|
||||
|
||||
env, err := auth.ParseAzureEnvironment(config.Cloud)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
@ -864,6 +864,7 @@ func getTestCloud() (az *Cloud) {
|
|||
RouteTableName: "rt",
|
||||
PrimaryAvailabilitySetName: "as",
|
||||
MaximumLoadBalancerRuleCount: 250,
|
||||
VMType: vmTypeStandard,
|
||||
},
|
||||
}
|
||||
az.DisksClient = newFakeDisksClient()
|
||||
|
|
Loading…
Reference in New Issue