Skip to content
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

CPU regex #341

Open
garyburgmann opened this issue Dec 9, 2024 · 1 comment
Open

CPU regex #341

garyburgmann opened this issue Dec 9, 2024 · 1 comment

Comments

@garyburgmann
Copy link

"pattern": "^([0-9]{4,}|[2-9][5-9][0-9])m$"

"pattern": "^([0-9]{4,}|[2-9][5-9][0-9])m$"

[5-9]

image

image

image

@nessex
Copy link

nessex commented Mar 4, 2025

Just hit this also. It's not clear why values like 500m are disallowed, but e.g. 499m is allowed.

I think this should look something like: ^[1-9]([0-9]{0,1}|[0-9]+m)$

  • Require a non-zero initial digit
  • Assume requesting >99 vCPUs is a mistake
  • Assume requesting <10m vCPUs is a mistake

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

No branches or pull requests

2 participants