Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
3479522d
Commit
3479522d
authored
Dec 14, 2016
by
Kubernetes Submit Queue
Committed by
GitHub
Dec 14, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #38701 from gmarek/routecontroller
Automatic merge from submit-queue (batch tested with PRs 38736, 38701) Don't retry creating route if it already exists Ref. #38618
parents
23cd9d7b
98fdcf15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
gce.go
pkg/cloudprovider/providers/gce/gce.go
+6
-1
No files found.
pkg/cloudprovider/providers/gce/gce.go
View file @
3479522d
...
@@ -2400,7 +2400,12 @@ func (gce *GCECloud) CreateRoute(clusterName string, nameHint string, route *clo
...
@@ -2400,7 +2400,12 @@ func (gce *GCECloud) CreateRoute(clusterName string, nameHint string, route *clo
Description
:
k8sNodeRouteTag
,
Description
:
k8sNodeRouteTag
,
})
.
Do
()
})
.
Do
()
if
err
!=
nil
{
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
)
return
gce
.
waitForGlobalOp
(
insertOp
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment