mittwald / kubernetes-replicator

Kubernetes controller for synchronizing secrets & config maps across namespaces
Apache License 2.0
886 stars 101 forks source link

how often does the controller check secrets for changes and re-synch? #270

Closed gsfd2000 closed 1 year ago

gsfd2000 commented 1 year ago

if I do have a tls secret in namespace a with a label to synch to namespace b, how often or on what base is the controller checking the secret for changes in namespace a and re-synching them to the target namespace b (push mechanism applied)? Could not find any details on that matter. thx

also wanted to label this as question, pls advise how to do so. thx

martin-helmich commented 1 year ago

The replicator uses a WATCH request to stream changes in near-realtime. Additionally, the controller has a resync period of 30m (by default, configurable by flag) after which all observed secrets are synchronised, regardless of any previous changes.

Hope that helps!