Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌱 ignore the manifest uid #242

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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