diff --git a/pkg/webhook/work/mutating.go b/pkg/webhook/work/mutating.go index 73fead453021..152b2cbec688 100644 --- a/pkg/webhook/work/mutating.go +++ b/pkg/webhook/work/mutating.go @@ -109,6 +109,8 @@ func removeIrrelevantField(workload *unstructured.Unstructured) error { // populated by the kubernetes. unstructured.RemoveNestedField(workload.Object, "metadata", "uid") + unstructured.RemoveNestedField(workload.Object, "metadata", "ownerReferences") + unstructured.RemoveNestedField(workload.Object, "status") if workload.GetKind() == util.ServiceKind {