Possible to wait n time before reload occurs
retr0h opened this issue · comments
Is it possible for the reloader to wait n time before issuing the reload of a deployment?
What is the use case?
I just stumbled upon this issue and I personally have two viewpoints on this matter. On the one hand I want to have configuration changes made available as fast as possible in my workload. On the other hand I might have some use cases that are not so time sensitive like tls cert renewal or similar. In this case it could be nice to configure s.th. like a time window to postpone the reload to a time with less traffic.
Extending to this, will be nice to have functionality like defining maintenance window and perform reload in that period only.
What is the use case?
We have an API endpoint that we wish to restart when a config map changes, as the config map contains env vars mounted into the deployment. However, this api endpoint is responsible for updating many config maps across the system, one of which is the one it's mounting, therefore reloader will restart it, before it's able to complete it's job.
Having a delay before restart would be nice.