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
8bafc977
Commit
8bafc977
authored
Dec 17, 2018
by
Laurent Bernaille
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[kube-proxy/ipvs] Do not try to delete RS already in termination list
parent
ffbfc530
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
proxier.go
pkg/proxy/ipvs/proxier.go
+4
-0
No files found.
pkg/proxy/ipvs/proxier.go
View file @
8bafc977
...
...
@@ -1643,6 +1643,10 @@ func (proxier *Proxier) cleanLegacyService(activeServices map[string]bool, curre
// Applying graceful termination to all real servers
for
_
,
rs
:=
range
rsList
{
uniqueRS
:=
GetUniqueRSName
(
svc
,
rs
)
// If RS is already in the graceful termination list, no need to add it again
if
proxier
.
gracefuldeleteManager
.
InTerminationList
(
uniqueRS
)
{
continue
}
klog
.
V
(
5
)
.
Infof
(
"Using graceful delete to delete: %v"
,
uniqueRS
)
if
err
:=
proxier
.
gracefuldeleteManager
.
GracefulDeleteRS
(
svc
,
rs
);
err
!=
nil
{
klog
.
Errorf
(
"Failed to delete destination: %v, error: %v"
,
uniqueRS
,
err
)
...
...
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