Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Support for delete notifications #50

Open
asoni90 opened this issue Dec 31, 2019 · 4 comments
Open

Support for delete notifications #50

asoni90 opened this issue Dec 31, 2019 · 4 comments

Comments

@asoni90
Copy link

asoni90 commented Dec 31, 2019

Kube-janitor is a very good tool to remove dangling resources. It would be good if it can integrate resource deletion notifications feature also. for ex. If kube-janitor deletes a namespace then user should get a notification for the same.
Start with notification channels like Email, Slack. Later more channels can be added.

@kapilgarg83
Copy link

I am also thinking the same ..it will be good if we have some notifications feature also

@blacs30
Copy link

blacs30 commented May 27, 2020

That would be helpful.
Looking at this flag --resource-context-hook it seems to run each cycle while some objects are annotated with a ttl.
Is it possible to know that now items have been deleted and something could be done with those items? then it'd be already possible to do a lot

@Darwiner
Copy link

I haven't tried it yet, but this seems like a feature that might already be in place (although I see no mention of it in the README...).

#24

@blacs30
Copy link

blacs30 commented Sep 16, 2020

I didn’t write back here but I use a hook in janitor to check the events, if entries with the delete notification have been created by janitor then some external APIs are called to cleanup non k8s resources which are related (in our case vault roles for a namespace)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants