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

Add resource requirements to Timoni's CUE schemas #265

Merged
merged 1 commit into from
Dec 3, 2023

Conversation

stefanprodan
Copy link
Owner

The timoniv1.#ResourceRequirements schema is intended for setting container CPU and memory requests and limits. Compared to the CUE generated corev1.#ResourceRequirements, the Timoni schema contains proper validation for the cpu and memory fields and enforces that the CPU requests do not exceed the limits.

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@stefanprodan stefanprodan added the area/api API related issues and pull requests label Dec 3, 2023
@stefanprodan stefanprodan merged commit b5541f1 into main Dec 3, 2023
4 checks passed
@stefanprodan stefanprodan deleted the resource-requirements-schema branch December 3, 2023 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api API related issues and pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant