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/content/en/docs/faq/_index.md
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,32 @@ to make sure an updated status is present for the next reconciliation.
95
95
96
96
Dependent Resources feature supports the [first approach](../documentation/dependent-resource-and-workflows/dependent-resources.md#external-state-tracking-dependent-resources).
97
97
98
+
### How can I make the status update of my custom resource trigger a reconciliation?
99
+
100
+
For the primary resource, the framework by default specially checks if the change on the primary
101
+
resource is increased the `generation` field in the metadata, and filters out the related event if not.
102
+
This field is increased when `.spec` of the resource is changed. Therefore, a change in the `.status` field
103
+
will not trigger a reconciliation.
104
+
105
+
To change this behavior, you can set the [`generationAwareEventProcessing`](https://github.com/operator-framework/java-operator-sdk/blob/main/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler/ControllerConfiguration.java#L43)
For secondary resources, every change should trigger a reconciliation by default.
120
+
Except when you add explicit filter or use dependent resources that by default filter out own changes,
121
+
see [related docs](../documentation/dependent-resource-and-workflows/dependent-resources.md#caching-and-event-handling-in-kubernetesdependentresource).
122
+
123
+
98
124
### How can I skip the reconciliation of a dependent resource?
99
125
100
126
Skipping workflow reconciliation altogether is possible with the explicit invocation feature since v5.
0 commit comments