controlant-org / ctrl-cidr

A tiny controller that manages CIDR blocks in AWS
MIT License
1 stars 0 forks source link

Configurable Reconciliation Loop Timer #1

Open celestialorb opened 2 years ago

celestialorb commented 2 years ago

We should make the sleep timer value in this line configurable if possible. I feel like a five minute reconciliation timer is on the high end. In our use case everytime we touch our EKS cluster we revert the additional security rules that are managed by the CIDR controller and have to wait up to five minutes for the controller to correct it.

https://github.com/controlant-org/ctrl-cidr/blob/10bd72158e909d14bc4f599aa7f60ba68c9a7c2b/src/main.rs#L54

aquarhead commented 2 years ago

Yeah, I'm worried about AWS rate limit hence the 5min. Also we can always "trigger" it by e.g. run it manually or through pod restart