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
var updatedResource =PrimaryUpdateAndCacheUtils.ssaPatchStatusAndCacheResource(resource, freshCopy, context);
205
-
205
+
206
+
// the resource was updated transparently via the utils, no further action is required via UpdateControl in this case
206
207
returnUpdateControl.noUpdate();
207
208
}
208
209
```
@@ -213,5 +214,9 @@ Note that it is not necessarily the same version returned as response from the u
213
214
can do additional updates meanwhile. However, unless it has been explicitly modified, that
214
215
resource will contain the up-to-date status.
215
216
217
+
Note that you can also perform additional updates after the `PrimaryUpdateAndCacheUtils.*PatchStatusAndCacheResource` is
218
+
called, either by calling any of the `PrimeUpdateAndCacheUtils` methods again or via `UpdateControl`. Using
219
+
`PrimaryUpdateAndCacheUtils` guarantees that the next reconciliation will see a resource state no older than the version
220
+
updated via `PrimaryUpdateAndCacheUtils`.
216
221
217
222
See related integration test [here](https://github.com/operator-framework/java-operator-sdk/blob/main/operator-framework/src/test/java/io/javaoperatorsdk/operator/baseapi/statuscache).
0 commit comments