Closed universam1 closed 2 years ago
Two feature set
Hi @universam1 , This looks like a valid ask. We will add it to our unprirotized backlog. However, if you want to take up the issue and submit a PR for the same, we would love to help you out with reviews and pointers for code change!
@cppforlife , do you think it would be a good Idea to add --show-labels flag, on the kapp ls command. @sethiyash , @rohitagg2020 If yes, then If there are multiple labels, how do show all the labels in the table.
Release v0.46.0
Describe the problem/challenge you have We like to annotate certain apps in order to filter them later for cleanup.
I see that kapp deploy --labels ... is supported, but that flag is not available under kapp app-group deploy.
Background: We like to run a cronjob that removes test deployments that are older than a week, keeping production deployments. Devs are able to create preview deployments for acceptance test, but if they forget to clean them up they keep lingering and filling up the cluster. We cannot simply remove the namespace, we need to filter on apps. So something like an annotation or label I assume could do the trick to mark production type apps, but this is not supported with app-groups
Describe the solution you'd like adding labels for app-group deployments like it is available for normal deployment
Anything else you would like to add:
Assuming label is applied, what are your steps in finding them (by label and age) and deleting them?