File tree 1 file changed +21
-1
lines changed
docs/content/en/blog/news
1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- title : From client side to server side apply
2
+ title : From client side to server- side apply
3
3
date : 2025-02-17
4
4
---
5
5
@@ -18,6 +18,26 @@ For dependent resources a separate flag exists (this was true also before v5) to
18
18
19
19
## Resource handling without and with SSA
20
20
21
+ Until version 5 changing primary resource through ` UpdateControl ` did not use server-side apply.
22
+ So usually the implementation of reconciler looked something like this:
23
+
24
+ ``` java
25
+
26
+ @Override
27
+ public UpdateControl<WebPage > reconcile(WebPage webPage, Context<WebPage > context) {
28
+
29
+ reconcileLogicForManagedResources(webPage);
30
+ webPage. setStatus(updatedStatusForWebPage(webPage));
31
+
32
+ return UpdateControl . patchStatus(webPage);
33
+ }
34
+
35
+ ```
36
+
37
+ In other words, after reconciliation of managed resources the reconcile updated the status on the
38
+ primary resource passed as argument to the reconciler.
39
+ Such changes on primary are fine, since we don't work directly with the cached object, the argument is
40
+ already cloned.
21
41
22
42
## Migrating to SSA
23
43
You can’t perform that action at this time.
0 commit comments