Documentation ¶
Index ¶
Constants ¶
View Source
const ( // In case of synchronizer error it will be restarted. AlwaysRestart RestartPolicy = "always" NeverRestart RestartPolicy = "never" RestartDelay = 2 * time.Second // We don't need to sync it with every instance. If a single instance synchronizer fails // often, just force restart it. MaxRestartCount = 15 )
Variables ¶
View Source
var Overwatch *overwatch
Overwatch is watching over every registered synchronizer. In case of error it will be logged and if RestartPolicy is set to "Always" synchronizer will be restarted.
Functions ¶
func NewSynchronizerManager ¶
func NewSynchronizerManager(client kubernetes.Interface) syncApi.SynchronizerManager
NewSynchronizerManager creates new instance of SynchronizerManager.
Types ¶
type RestartPolicy ¶
type RestartPolicy string
RestartPolicy is used by Overwatch to determine how to behave in case of synchronizer error.
Click to show internal directories.
Click to hide internal directories.