mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
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
This commit is contained in:
commit
7309d34873
@ -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