etcdctlv3: updated member command options
parent
4de39d3683
commit
1601ee761a
|
@ -418,7 +418,7 @@ LEASE KEEP-ALIVE periodically refreshes a lease so it does not expire.
|
||||||
|
|
||||||
MEMBER provides commands for managing etcd cluster membership.
|
MEMBER provides commands for managing etcd cluster membership.
|
||||||
|
|
||||||
### MEMBER ADD \<memberName\>
|
### MEMBER ADD \<memberName\> [options]
|
||||||
|
|
||||||
MEMBER ADD introduces a new member into the etcd cluster as a new peer.
|
MEMBER ADD introduces a new member into the etcd cluster as a new peer.
|
||||||
|
|
||||||
|
@ -440,7 +440,7 @@ MEMBER ADD introduces a new member into the etcd cluster as a new peer.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
### MEMBER UPDATE \<memberID\>
|
### MEMBER UPDATE \<memberID\> [options]
|
||||||
|
|
||||||
MEMBER UPDATE sets the peer URLs for an existing member in the etcd cluster.
|
MEMBER UPDATE sets the peer URLs for an existing member in the etcd cluster.
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ func NewMemberCommand() *cobra.Command {
|
||||||
// NewMemberAddCommand returns the cobra command for "member add".
|
// NewMemberAddCommand returns the cobra command for "member add".
|
||||||
func NewMemberAddCommand() *cobra.Command {
|
func NewMemberAddCommand() *cobra.Command {
|
||||||
cc := &cobra.Command{
|
cc := &cobra.Command{
|
||||||
Use: "add <memberName>",
|
Use: "add <memberName> [options]",
|
||||||
Short: "Adds a member into the cluster",
|
Short: "Adds a member into the cluster",
|
||||||
|
|
||||||
Run: memberAddCommandFunc,
|
Run: memberAddCommandFunc,
|
||||||
|
@ -68,7 +68,7 @@ func NewMemberRemoveCommand() *cobra.Command {
|
||||||
// NewMemberUpdateCommand returns the cobra command for "member update".
|
// NewMemberUpdateCommand returns the cobra command for "member update".
|
||||||
func NewMemberUpdateCommand() *cobra.Command {
|
func NewMemberUpdateCommand() *cobra.Command {
|
||||||
cc := &cobra.Command{
|
cc := &cobra.Command{
|
||||||
Use: "update <memberID>",
|
Use: "update <memberID> [options]",
|
||||||
Short: "Updates a member in the cluster",
|
Short: "Updates a member in the cluster",
|
||||||
|
|
||||||
Run: memberUpdateCommandFunc,
|
Run: memberUpdateCommandFunc,
|
||||||
|
|
Loading…
Reference in New Issue