Merge pull request #4422 from jwcesign/fix-pp-conflict-v2

skip recreating resources that is not supposed to be propagated
This commit is contained in:
karmada-bot 2023-12-15 10:09:12 +08:00 committed by GitHub
commit 4f245f2a08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -276,6 +276,10 @@ func (c *WorkStatusController) handleDeleteEvent(key keys.FederatedKey) error {
return nil
}
if util.GetLabelValue(work.Labels, util.PropagationInstruction) == util.PropagationInstructionSuppressed {
return nil
}
return c.recreateResourceIfNeeded(work, key)
}