@@ -88,6 +88,7 @@ var etcdAlarmListCmd = &cobra.Command{
88
88
Use : "list" ,
89
89
Short : "List the etcd alarms for the node." ,
90
90
Long : `` ,
91
+ Args : cobra .NoArgs ,
91
92
RunE : func (cmd * cobra.Command , args []string ) error {
92
93
return WithClient (func (ctx context.Context , c * client.Client ) error {
93
94
response , err := c .EtcdAlarmList (ctx )
@@ -110,6 +111,7 @@ var etcdAlarmDisarmCmd = &cobra.Command{
110
111
Use : "disarm" ,
111
112
Short : "Disarm the etcd alarms for the node." ,
112
113
Long : `` ,
114
+ Args : cobra .NoArgs ,
113
115
RunE : func (cmd * cobra.Command , args []string ) error {
114
116
return WithClient (func (ctx context.Context , c * client.Client ) error {
115
117
response , err := c .EtcdAlarmDisarm (ctx )
@@ -133,6 +135,7 @@ var etcdDefragCmd = &cobra.Command{
133
135
Short : "Defragment etcd database on the node" ,
134
136
Long : `Defragmentation is a maintenance operation that releases unused space from the etcd database file.
135
137
Defragmentation is a resource heavy operation and should be performed only when necessary on a single node at a time.` ,
138
+ Args : cobra .NoArgs ,
136
139
RunE : func (cmd * cobra.Command , args []string ) error {
137
140
return WithClient (func (ctx context.Context , c * client.Client ) error {
138
141
if err := helpers .FailIfMultiNodes (ctx , "etcd defrag" ); err != nil {
@@ -150,6 +153,7 @@ var etcdLeaveCmd = &cobra.Command{
150
153
Use : "leave" ,
151
154
Short : "Tell nodes to leave etcd cluster" ,
152
155
Long : `` ,
156
+ Args : cobra .NoArgs ,
153
157
RunE : func (cmd * cobra.Command , args []string ) error {
154
158
return WithClient (func (ctx context.Context , c * client.Client ) error {
155
159
if err := helpers .FailIfMultiNodes (ctx , "etcd leave" ); err != nil {
@@ -186,6 +190,7 @@ var etcdForfeitLeadershipCmd = &cobra.Command{
186
190
Use : "forfeit-leadership" ,
187
191
Short : "Tell node to forfeit etcd cluster leadership" ,
188
192
Long : `` ,
193
+ Args : cobra .NoArgs ,
189
194
RunE : func (cmd * cobra.Command , args []string ) error {
190
195
return WithClient (func (ctx context.Context , c * client.Client ) error {
191
196
_ , err := c .EtcdForfeitLeadership (ctx , & machine.EtcdForfeitLeadershipRequest {})
@@ -199,6 +204,7 @@ var etcdMemberListCmd = &cobra.Command{
199
204
Use : "members" ,
200
205
Short : "Get the list of etcd cluster members" ,
201
206
Long : `` ,
207
+ Args : cobra .NoArgs ,
202
208
RunE : func (cmd * cobra.Command , args []string ) error {
203
209
return WithClient (func (ctx context.Context , c * client.Client ) error {
204
210
response , err := c .EtcdMemberList (ctx , & machine.EtcdMemberListRequest {
@@ -258,6 +264,7 @@ var etcdStatusCmd = &cobra.Command{
258
264
Use : "status" ,
259
265
Short : "Get the status of etcd cluster member" ,
260
266
Long : `Returns the status of etcd member on the node, use multiple nodes to get status of all members.` ,
267
+ Args : cobra .NoArgs ,
261
268
RunE : func (cmd * cobra.Command , args []string ) error {
262
269
return WithClient (func (ctx context.Context , c * client.Client ) error {
263
270
response , err := c .EtcdStatus (ctx )
0 commit comments