fix: do not recreate endpointslice if k8s controller deletes it in provider member clusters

Signed-off-by: jwcesign <jwcesign@gmail.com>
This commit is contained in:
jwcesign 2023-12-14 21:46:18 +08:00
parent 99447b01f7
commit 18a2e07e5b
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 return nil
} }
if util.GetLabelValue(work.Labels, util.PropagationInstruction) == util.PropagationInstructionSuppressed {
return nil
}
return c.recreateResourceIfNeeded(work, key) return c.recreateResourceIfNeeded(work, key)
} }