Skip to content

Commit

Permalink
ignore the manifest uid (#242)
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Liu <liuweixa@redhat.com>
  • Loading branch information
skeeey authored Aug 1, 2023
1 parent fb347bd commit 720ae29
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 720ae29

Please sign in to comment.