Allow pre-existing OpenShift projects to be managed by Coldfront allocations #272
+42
−2
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