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

Fix cpu and memory config validation in JSON schema #1013

Merged
merged 8 commits into from
Nov 15, 2024

Conversation

jrdnbradford
Copy link
Contributor

@jrdnbradford jrdnbradford commented Nov 14, 2024

Fixes #1012.

The config schema for cpu limits now accepts values such as 3, 3.5 and "None". Added minimums of 0 to prevent negative numerics.

Details on number can be found in the JSON Schema docs.

@jrdnbradford jrdnbradford changed the title Fix cpu validation in JSON schema Fix cpu config validation in JSON schema Nov 14, 2024
tljh/config_schema.py Outdated Show resolved Hide resolved
@jrdnbradford jrdnbradford changed the title Fix cpu config validation in JSON schema Fix cpu and memory config validation in JSON schema Nov 15, 2024
@jrdnbradford
Copy link
Contributor Author

jrdnbradford commented Nov 15, 2024

I went ahead and fixed the similar issue with the memory limit, which should also allow None.

@minrk minrk merged commit 3397e75 into jupyterhub:main Nov 15, 2024
16 checks passed
@minrk
Copy link
Member

minrk commented Nov 15, 2024

Thanks!

@jrdnbradford jrdnbradford deleted the fix-cpu-schema branch November 15, 2024 15:44
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.

tljh-config set limits.cpu does not accept a float value
2 participants