TwiN / k8s-ttl-controller

Kubernetes controller that enables timed resource deletion using TTL annotation
MIT License
45 stars 5 forks source link

TTL notification #79

Closed ahadrez closed 4 months ago

ahadrez commented 7 months ago

Describe the feature request

I was wondering if you're planning to add notifications via email to send notifications when ttl about to expire.

Why do you personally want this feature to be implemented?

No response

How long have you been using this project?

No response

Additional information

No response

TwiN commented 4 months ago

I don't think this is appropriate for an application like this.

That being said, k8s-ttl-controller does create events when resources are deleted due to TTL: https://github.com/TwiN/k8s-ttl-controller/blob/e322d7e7bb8a7ef4a91e1743ed5a4e188a4aed3e/main.go#L153

It's not quite what you're looking for, but this coupled with alertmanager should allow you to create notifications when deletions occur.