Skip to content

feat: add flex support - #57

Open
Matthew Christopher (matthchr) wants to merge 2 commits into
Azure:mainfrom
matthchr:matthchr/flex-support
Open

Matthew Christopher (matthchr) wants to merge 2 commits into
Azure:mainfrom
matthchr:matthchr/flex-support

Conversation

@matthchr

Copy link
Copy Markdown
Member

No description provided.

Comment thread v2/vmsize.go
Comment on lines -18 to +20
`(?P<additiveFeatures>(?:[abcdeiflmnotspPr]+|C+|NP)?)_?(?:NDR_)?` +
`(?:(?P<acceleratorType>(?:xl_)?[A-Z]+[0-9]+[A-Z]*)_?)?` +
`(?P<additiveFeatures>(?:[abcdeiflmnotspPrux]+|C+|NP)?)` +

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also adds u and x, which we did not recognize before - which I think means we would start parsing/accepting sizes we have not in the past? This is likely fine, and an improvement - but probably worth calling out?

Comment thread v2/sku.go
Comment on lines +448 to +450
// Flex SKUs report only "Flex" in Size; their names carry the sizing details.
// TODO: Remove this workaround when Flex is removed.
if size == "Flex" {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to check for "Flex_Prime" here as well? (Not sure what the difference is ...)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question let me check...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants