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:
commit
4f245f2a08
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue