[ENHANCE] Remove / allow removing timestamp from pod template reloader.stakater.com/last-reloaded-from
annotation
#777
Labels
reloader.stakater.com/last-reloaded-from
annotation
#777
Is your feature request related to a problem? Please describe.
I would like to guarantee deployments restart also when the config change occurs during reloader outage. It is possible to use
reloadOnCreate
+syncAfterRestart
, but it's also problematic for us.Using
annotations
reloadStrategy
, in addition to hash, the annotation also contains timestamp (observedAt
field in embedded json in annotation). And this causes that every monitored deployment is restarted (even without configuration changes) each time the reloader is restarted or it's leader is elected (which is also described in documentation).If the timestamp was removed from the annotation, annotation value would be the same and the deployment wouldn't be restarted (the annotation would be completely same, of course).
This works well using
env-vars
strategy because generated environment variables values contain hashes only (and no timestamp or other information). But I personally prefer annotation-base strategy and it would be better to work in the same way.Describe the solution you'd like
I'd like to have possibility (even using annotation strategy) to restart deployment even when the config change occurs during reloader outage (after reloader recovery, of course) but avoid all deployments restart when reloader is restarted.
My suggestion is to have annotation value strictly same when the configuration is same (i.e. no timestamp in value and a predictable way to order fields in embedded json in annotation).
Describe alternatives you've considered
Timestamp doesn't have to be removed, but it could be moved to another annotation on the deployment level (instead of pod level).
Additional context
We are using ArgoCD
The text was updated successfully, but these errors were encountered: