Commit 7309d348 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #33492 from kargakis/stop-retrying-selector-overlaps

Automatic merge from submit-queue 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. @kubernetes/deployment ptal
parents ad864cd7 0a843a50
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment