Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-13081

Avoid conflict when apply a resource with Maestro

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • None
    • Maestro
    • None
    • False
    • None
    • False
    • 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",
              },
      }

              Unassigned Unassigned
              wliu1 Wei Liu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: