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
Note that we just filled the status here, since we patch the status (not the resource spec).
68
+
Since the status is a sub-resource in Kubernetes, it will only update the status part.
69
+
70
+
Every controller you register will have its own default [field manager](https://kubernetes.io/docs/reference/using-api/server-side-apply/#managers).
71
+
You can override the field manager name using [`ControllerConfiguration.fieldManager`](https://github.com/operator-framework/java-operator-sdk/blob/main/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/ControllerConfiguration.java#L89).
72
+
That will set the field manager for the updates of the primary resource and dependent resources.
73
+
74
+
## Migrating to SSA
75
+
76
+
Using the legacy or the new SSA way of resource management works well.
77
+
However, migrating existing resources to SSA might be a challenge.
78
+
So we strongly encourage everyone to test the migration, thus write an integration test where
79
+
a custom resource is created using legacy approach is getting managed by new approach.
80
+
81
+
We prepared an integration test to demonstrate how such migration even in a simple case can go wrong,
82
+
and how to fix it.
83
+
84
+
Note that fixing might that you need to [strip managed fields](https://kubernetes.io/docs/reference/using-api/server-side-apply/#clearing-managedfields)
85
+
from the custom resource.
86
+
87
+
See [`StatusPatchSSAMigrationIT`](https://github.com/operator-framework/java-operator-sdk/blob/main/operator-framework/src/test/java/io/javaoperatorsdk/operator/baseapi/statuspatchnonlocking/StatusPatchSSAMigrationIT.java) for details.
88
+
89
+
Also feel free to report common issues, so we can in case prepare some utilities to handle them.
0 commit comments