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
439e32b0
Unverified
Commit
439e32b0
authored
Aug 06, 2021
by
Hussein Galal
Committed by
GitHub
Aug 06, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Node stuck at deletion (#3777)
Signed-off-by:
galal-hussein
<
hussein.galal.ahmed.11@gmail.com
>
parent
f72e2cb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
etcd.go
pkg/etcd/etcd.go
+6
-0
No files found.
pkg/etcd/etcd.go
View file @
439e32b0
...
...
@@ -35,6 +35,10 @@ import (
utilnet
"k8s.io/apimachinery/pkg/util/net"
)
const
(
memberRemovalTimeout
=
time
.
Minute
*
1
)
type
ETCD
struct
{
client
*
etcd
.
Client
config
*
config
.
Control
...
...
@@ -535,6 +539,8 @@ func (e *ETCD) cluster(ctx context.Context, forceNew bool, options executor.Init
// removePeer removes a peer from the cluster. The peer ID and IP address must both match.
func
(
e
*
ETCD
)
removePeer
(
ctx
context
.
Context
,
id
,
address
string
,
removeSelf
bool
)
error
{
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
memberRemovalTimeout
)
defer
cancel
()
members
,
err
:=
e
.
client
.
MemberList
(
ctx
)
if
err
!=
nil
{
return
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