-
Notifications
You must be signed in to change notification settings - Fork 20
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 labels to ODS projects for cleanup 🧹 #668
Comments
Sounds interesting - the question is what labels should be applied, and how to make that flexible enough ... |
I find it interesting too... additionally you will need to modify in ods-core https://github.com/opendevstack/ods-core/blob/master/create-projects/create-projects.sh to add the labels on/after project creation |
I've been looking into using the first project admin in the
So I have replaced the '@' symbol with 'at'. |
@felipecruz91 we have work in progress with @michaelsauter already using a labelling standard... will have to find it |
@metmajer I think you are referring to opendevstack/ods-quickstarters#512. However, that is about resources within a project, while I believe @felipecruz91 suggestion is for labels on the project itself. |
Thanks for clarifying @michaelsauter. My suggestion here is to use I think it is nice to define the label name following a hierarchy from |
what about |
A project admin user can be defined when provisioning the project, but I am not sure whether it will always be present. Otherwise, the first admin in the group is a good idea. I like @segator proposal of opendevstack.org/project.owner. An alternative could be project.opendevstack.org/owner or even .../owner.email. |
* Assign the owner as a label to the project Refers to opendevstack/ods-provisioning-app#668 * Added entry in CHANGELOG.md * Added double quote to prevent globbing and word splitting * Updated label to opendevstack.org/project.owner Co-authored-by: zxBCN Cruz_Martinez <[email protected]>
@felipecruz91 is this item still planned for ODS 4.0.0 or we could move it to ODS 4.1.0? |
@metmajer Would you reply to the previous comment? |
@felipecruz91 this sounds super useful. However, there were issues with the service account permissions. @clemensutschig knows more. If there is no quick solution ahead, we will have to defer. |
Is your feature request related to a problem? Please describe.
OpenShift clusters, over time, end up with 100+ ODS projects that are difficult to keep track of what the owner is. This is important when it comes to deleting old and unused projects to free up resources in the cluster.
Describe the solution you'd like
The Prov App could define
labels
when creating the ODS project in OpenShift. For instance, it could add:ods.project.owner: [email protected]
ods.project.type: [default|kanban|EDProject]
This way, we could identify what projects belong to what users with
oc get projects -l [email protected]
Additional context
The aforementioned fields can be populated from the Prov App form.
Would like to hear your thoughts on this @clemensutschig @michaelsauter
The text was updated successfully, but these errors were encountered: