-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add remove peer #134
add remove peer #134
Conversation
TODO: tests |
|
||
// The name of the remove command in the log | ||
func (c *RemoveCommand) CommandName() string { | ||
return "etcd:remove" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you use the commandName func?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@philips Sure. will change.
lgtm after cleaning up the function signature on getMachines and some of the comments. |
lgtm, thanks for cleaning that up. |
@@ -140,18 +142,25 @@ func (c *JoinCommand) CommandName() string { | |||
// Join a server to the cluster | |||
func (c *JoinCommand) Apply(raftServer *raft.Server) (interface{}, error) { | |||
|
|||
if c.Name == r.Name() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you write a comment explaining this, I know why this works but not everyone reading the code will.
lgtm besides the error message. |
…nshift-4.12-ose-etcd Updating ose-etcd images to be consistent with ART
No description provided.