You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/documentation/patterns-best-practices.md
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,7 @@ advised to put such state into a separate resource meant for this purpose such a
105
105
Kubernetes Secret or ConfigMap or even a dedicated Custom Resource, which structure can be more
106
106
easily validated.
107
107
108
-
## Stopping (or not) Operator in case of Informer Errors
108
+
## Stopping (or not) Operator in case of Informer Errors and Cache Sync Timeouts
109
109
110
110
It can
111
111
be [configured](https://github.com/java-operator-sdk/java-operator-sdk/blob/2cb616c4c4fd0094ee6e3a0ef2a0ea82173372bf/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/ConfigurationService.java#L168-L168)
@@ -120,4 +120,6 @@ that is when a resource cannot be deserialized. The typical use case for changin
120
120
is watched by a controller. In is better to start up the operator, so it can handle other namespaces while there
121
121
might be a permission issue for some resources in another namespace.
122
122
123
-
123
+
The `stopOnInformerErrorDuringStartup` has implication on [cache sync timeout](https://github.com/java-operator-sdk/java-operator-sdk/blob/114c4312c32b34688811df8dd7cea275878c9e73/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/ConfigurationService.java#L177-L179)
124
+
behavior. If true operator will stop on cache sync timeout. if `false`, after the timeout the controller will start
125
+
reconcile resources even if one or more event source caches did not sync yet.
0 commit comments