mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-06 01:07:03 +00:00
ignore the manifest uid (#242)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
This commit is contained in:
@@ -296,6 +296,12 @@ func (m *ManifestWorkController) applyOneManifest(
|
||||
return result
|
||||
}
|
||||
|
||||
// ignore the required object UID to avoid UID precondition failed error
|
||||
if len(required.GetUID()) != 0 {
|
||||
klog.Warningf("Ignore the UID %s for the manifest index %d", required.GetUID(), index)
|
||||
required.SetUID("")
|
||||
}
|
||||
|
||||
resMeta, gvr, err := helper.BuildResourceMeta(index, required, m.restMapper)
|
||||
result.resourceMeta = resMeta
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user