Skip to content

docs: improve wording #2844

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions docs/content/en/docs/faq/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,30 +97,31 @@ Dependent Resources feature supports the [first approach](../documentation/depen

### How can I make the status update of my custom resource trigger a reconciliation?

For the primary resource, the framework by default specially checks if the change on the primary
resource is increased the `generation` field in the metadata, and filters out the related event if not.
This field is increased when `.spec` of the resource is changed. Therefore, a change in the `.status` field
will not trigger a reconciliation.
The framework checks, by default, when an event occurs, that could trigger a reconciliation, if the event increased the
`generation` field of the primary resource's metadata and filters out the event if it did not. `generation` is typically
only increased when the `.spec` field of a resource is changed. As a result, a change in the `.status` field would not
normally trigger a reconciliation.

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)
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)
to `false`:

```java

@ControllerConfiguration(generationAwareEventProcessing = false)
static class TestCustomReconciler implements Reconciler<TestCustomResource> {
static class TestCustomReconciler implements Reconciler<TestCustomResource> {

@Override
public UpdateControl<TestCustomResource> reconcile(TestCustomResource resource, Context<TestCustomResource> context) {
// code omitted
}
}
}
```

For secondary resources, every change should trigger a reconciliation by default.
Except when you add explicit filter or use dependent resources that by default filter out own changes,
For secondary resources, every change should trigger a reconciliation by default, except when you add explicit filters
or use dependent resource implementations that filter out changes they trigger themselves by default,
see [related docs](../documentation/dependent-resource-and-workflows/dependent-resources.md#caching-and-event-handling-in-kubernetesdependentresource).


### How can I skip the reconciliation of a dependent resource?

Skipping workflow reconciliation altogether is possible with the explicit invocation feature since v5.
Expand Down