Closed hjacobs closed 5 years ago
I am interested, can I take this task?
@SongGithub yes, please give it a shot --- it should be straight forward.
hi guys, please have a look at PR #17 when you have time, let me know if there is any problems.
The PR #17 has been merged, so this issue can be closed.
I will cut a new release today and close the issue afterwards.
The current TTL annotation (
janitor/ttl
) always denotes a maximum time to live counted from the time of creation of the resource. Sometimes it's desired to mark resources for deletion at arbitrary times in the future. Use case example:Proposal: support a new annotation
janitor/expires
which accepts an absolute timestamp in the formatYYYY-MM-DDTHH:MM:SSZ
(same format as KubernetescreationTimestamp
). Resources should be deleted if theirjanitor/expires
timestamp lies in the past.