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:
parent
99447b01f7
commit
18a2e07e5b
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue