Skip to content

Commit

Permalink
Merge pull request #796 from ctripcloud/remove-work-ownerReference
Browse files Browse the repository at this point in the history
remove work ownerReferences field
  • Loading branch information
karmada-bot authored Oct 11, 2021
2 parents 39d74dc + 63208e5 commit 43ba95d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/webhook/work/mutating.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 43ba95d

Please sign in to comment.