hjacobs / kube-janitor

Clean up (delete) Kubernetes resources after a configured TTL (time to live)
GNU General Public License v3.0
472 stars 40 forks source link

Support `deployment-time` annotation #43

Closed aermakov-zalando closed 4 years ago

aermakov-zalando commented 5 years ago

This annotation is injected during deployment time, so the janitor should prefer using it instead of creationTime. Currently it'll remove a deployment 2 days after it was created even if the users redeploy every hour, which is definitely not what anyone would expect.

jasonmorganson commented 4 years ago

Does this do it?

hjacobs commented 4 years ago

@jasonmorganson the linked PR #33 is an alternative version to track "last update time" without requiring a specific annotation injected by some other tool (like CI/CD pipeline).

hjacobs commented 4 years ago

This was implemented and released in https://github.com/hjacobs/kube-janitor/releases/tag/20.2.0