Open hjacobs opened 5 years ago
This probably happens because the deployment already propagates the new annotation to the replica set and kube-janitor
needs to reload the replica set before attempting the update (which actually is a no-op in this case).
The create_event function fails when the resource with the ttl is a namespace itself because the event is going to be created in the namespace which is being terminated, that is only for the ExpiryTimeReached
event, the TimeToLiveExpired
is written to the default namespace successfully.
An exception occurs in v0.6 when
--delete-notification
is set to a value > 0 and a deployment with a TTL annotation is processed. Note that everything works (events emitted, resources deleted) and the annotations are set as expected, but the exception is a bit annoying: