mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Do not emit event for AlreadyExists errors
This commit is contained in:
parent
dbb4def470
commit
9afe2c3a7c
@ -359,7 +359,8 @@ func (dc *DeploymentController) getNewReplicaSet(deployment *extensions.Deployme
|
||||
// We may end up hitting this due to a slow cache or a fast resync of the deployment.
|
||||
// TODO: Restore once https://github.com/kubernetes/kubernetes/issues/29735 is fixed
|
||||
// ie. we start using a new hashing algorithm.
|
||||
// case errors.IsAlreadyExists(err):
|
||||
case errors.IsAlreadyExists(err):
|
||||
return nil, err
|
||||
// return dc.rsLister.ReplicaSets(namespace).Get(newRS.Name)
|
||||
case err != nil:
|
||||
msg := fmt.Sprintf("Failed to create new replica set %q: %v", newRS.Name, err)
|
||||
|
Loading…
Reference in New Issue
Block a user