-
Notifications
You must be signed in to change notification settings - Fork 842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reflect the restricted vm sizes in the sdk #5710
Comments
@ArcturusZhang we're using containerservice.PossibleVMSizeTypesValues to determine what VMSize is valid for AKS. Should we use the list stored in |
Actually, this kind of method exists for every enum type, which just returns all possible values for that enum type. To acheive what you want, you may have to write a method that filters the valid enum by your self. |
@ArcturusZhang where the values of this enum type are generated from? are these generated from https://github.com/Azure/azure-rest-api-specs/blob/5c0a27ed2b2048cfcfea5f201bc3bb2d62dd75b7/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2018-03-31/managedClusters.json#L783 ? |
Yes, everything in the services folder is generated from the spec swagger json. |
@ArcturusZhang than if I understand it correctly if this Azure/azure-rest-api-specs#7153 is addressed then the enum in the services folder will reflect those changes. |
Sure, thanks! |
Bug Report
import path:
github.com/!azure/azure-sdk-for-go@v24.1.0+incompatible/services/containerservice/mgmt/2018-03-31/containerservice/models.go
SDK version
affects most versions
What happened?
AKS cluster creation failed due to invalid machine type
What did you expect or want to happen?
the SDK provides only machine types supported by the container service (the ones listed as restricted in the documentation are excluded)
The error message we got:
The text was updated successfully, but these errors were encountered: