mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 23:15:14 +00:00
controller: don't retry deployments with overlapping selectors
Returning an error will cause the deployment to be requeued. We should just emit an event for deployments with overlapping selectors and silently drop then out of the queue. This should be transitioned to a Condition once we have them.
This commit is contained in:
parent
69083bcfce
commit
0a843a50ba
@ -508,7 +508,8 @@ func (dc *DeploymentController) syncDeployment(key string) error {
|
||||
|
||||
// Handle overlapping deployments by deterministically avoid syncing deployments that fight over ReplicaSets.
|
||||
if err = dc.handleOverlap(d); err != nil {
|
||||
return err
|
||||
dc.eventRecorder.Eventf(deployment, api.EventTypeWarning, "SelectorOverlap", err.Error())
|
||||
return nil
|
||||
}
|
||||
|
||||
if d.Spec.Paused {
|
||||
|
Loading…
Reference in New Issue
Block a user