mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 02:34:03 +00:00
Don't retry creating route if it already exists
This commit is contained in:
parent
af23f40f82
commit
98fdcf155d
@ -2400,7 +2400,12 @@ func (gce *GCECloud) CreateRoute(clusterName string, nameHint string, route *clo
|
||||
Description: k8sNodeRouteTag,
|
||||
}).Do()
|
||||
if err != nil {
|
||||
return err
|
||||
if isHTTPErrorCode(err, http.StatusConflict) {
|
||||
glog.Info("Route %v already exists.")
|
||||
return nil
|
||||
} else {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return gce.waitForGlobalOp(insertOp)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user