-
Notifications
You must be signed in to change notification settings - Fork 1
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
Clean up expiring namespaces #161
Comments
Some ideas for labels:
We could also have configurable warning message too for a period in advance of the expiration date to say that the namespace will be removed. In some cases development environments could be removed after a defined period too, and the expiration could be incremented after each deployment to ensure it remains active for a period of time. |
@bomoko looping you in here for ideas |
@shreddedbacon - I'm very happy with any and all of these suggestions. Perhaps as a start we can start with the simple |
Since Lagoon namespace tokens can't label the namespace, but a task in Lagoon that performs migrations may need a way to mark an old namespace as ready for removal, there needs to be a way to mark a namespace as expired via something like a |
During migrations of environments from one target to another, the old namespace remains in the old target after migrations are performed, and could be forgotten about.
It could be useful to scan namespaces for a label like
lagoon.sh/expiration=${timestamp}
and then perform a deletion of that namespace.The text was updated successfully, but these errors were encountered: