-
Task
-
Resolution: Done
-
Critical
-
None
-
None
-
None
Currently, when we apply a ManagedCluster from Cluster Service to Management cluster with Maestro, it will be conflict with other ACM components, e.g.
{ "lastTransitionTime": "2024-08-02T10:03:53Z", "message": "Failed to apply manifest: Apply failed with 1 conflict: conflict with \"controller\" using cluster.open-cluster-management.io/v1: .metadata.labels.cloud", "reason": "AppliedManifestFailed", "status": "False", "type": "Applied" },
We need enable the force flag in the UpdateStrategy configurations, e.g.
manifestUpdateStrategy := &workv1.UpdateStrategy{ Type: workv1.UpdateStrategyTypeServerSideApply, ServerSideApply: &workv1.ServerSideApplyConfig{ Force: true, FieldManager: "maestro-agent", }, }