Skip to content

Validate Openshift limit ranges#264

Merged
knikolla merged 1 commit intonerc-project:mainfrom
QuanMPhm:257/limit_ranges
Nov 6, 2025
Merged

Validate Openshift limit ranges#264
knikolla merged 1 commit intonerc-project:mainfrom
QuanMPhm:257/limit_ranges

Conversation

@QuanMPhm
Copy link
Contributor

@QuanMPhm QuanMPhm commented Nov 5, 2025

Closes #257.

A function set_project_configuration() has been added to openshift.py to validate limit ranges. This allows changes to the default limit ranges (LIMITRANGE_DEFAULTS) to be applied to pre-existing Openshift projects.
The plan will be for this function to eventually contain all validation logic for Openshift project configurations, allowing validation_allocations to be resource-agnostic.

New functional test case added
parse_quota_value has been moved to utils.py as it is now used in two places

@QuanMPhm QuanMPhm requested a review from knikolla November 5, 2025 19:04
@QuanMPhm QuanMPhm force-pushed the 257/limit_ranges branch 3 times, most recently from 762e452 to 8dd9d76 Compare November 5, 2025 21:12
@QuanMPhm
Copy link
Contributor Author

QuanMPhm commented Nov 5, 2025

@knikolla Pinging since the UI won't let me re-request your review

A function `set_project_configuration()` has been added to `openshift.py` to validate limit ranges.
This allows changes to the default limit ranges (`LIMITRANGE_DEFAULTS`) to
be applied to pre-existing Openshift projects.

The plan will be for this function to eventually contain all validation logic
for Openshift project configurations, allowing `validation_allocations`
to be resource-agnostic.

New functional and unit test cases added
@knikolla knikolla merged commit 772cd9f into nerc-project:main Nov 6, 2025
4 checks passed
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.

validate_allocations should update LimitRange if out of sync

2 participants