Allow pre-existing OpenShift projects to be managed by Coldfront allocations#272
Merged
knikolla merged 1 commit intonerc-project:mainfrom Dec 4, 2025
Merged
Conversation
…cations To use this feature, first create a Coldfront allocation with the appropriate OpenShift resource. Before approving it, use the admin dashboard to add the attributes `Allocated Project ID` and `Allocated Project Name` to the allocation, both assigned to the name of the pre-existing project. Afterwards, approve the allocation, then run `validate_allocations` to populate the quota fields (as well as create various other OpenShift objects) on the allocation and the OpenShift project Do note, because of how validation is handled for quotas [1], if the pre-existing project already defined its quotas, Coldfront won't overwrite them with the default quotas. [1] https://github.com/nerc-project/coldfront-plugin-cloud/blob/1b2338d309c7db1c5a418d25fc40169b7edae055/src/coldfront_plugin_cloud/management/commands/validate_allocations.py#L311-L316
knikolla
approved these changes
Dec 2, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes CCI-MOC/ops-issues#1615 (comment)
To use this feature, first create a Coldfront allocation with the appropriate OpenShift resource. Before approving it, use the admin dashboard to add the attributes
Allocated Project IDandAllocated Project Nameto the allocation, both assigned to the name of the pre-existing project. Afterwards, approve the allocation, then runvalidate_allocationsto populate the quota fields (as well as create various other OpenShift objects) on the allocation and the OpenShift projectDo note, because of how validation is handled for quotas [1], if the pre-existing project already defined its quotas, Coldfront won't overwrite them with the default quotas.
[1]
coldfront-plugin-cloud/src/coldfront_plugin_cloud/management/commands/validate_allocations.py
Lines 311 to 316 in 1b2338d