Repository navigation
Expand file tree
/
Copy pathoption.go
More file actions
636 lines (591 loc) · 54.8 KB
/
Copy pathoption.go
File metadata and controls
636 lines (591 loc) · 54.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
package kube
import (
"strings"
"github.com/c-bata/go-prompt"
)
func optionCompleter(args []string, long bool) []prompt.Suggest {
l := len(args)
if l <= 1 {
if long {
return prompt.FilterHasPrefix(optionHelp, "--", false)
}
return optionHelp
}
var suggests []prompt.Suggest
commandArgs := excludeOptions(args)
switch commandArgs[0] {
case "get":
suggests = append(flagGet, flagGlobal...)
case "describe":
suggests = append(flagDescribe, flagGlobal...)
case "create":
suggests = append(flagCreate, flagGlobal...)
case "replace":
suggests = append(flagReplace, flagGlobal...)
case "patch":
suggests = append(flagPatch, flagGlobal...)
case "delete":
suggests = append(flagDelete, flagGlobal...)
case "edit":
suggests = append(flagEdit, flagGlobal...)
case "apply":
suggests = append(flagApply, flagGlobal...)
case "namespace":
suggests = flagGlobal
case "logs":
suggests = append(flagLogs, flagGlobal...)
case "rolling-update", "rollingupdate":
suggests = append(flagRollingUpdate, flagGlobal...)
case "scale", "resize":
suggests = append(flagScale, flagGlobal...)
case "attach":
suggests = append(flagAttach, flagGlobal...)
case "exec":
suggests = append(flagExec, flagGlobal...)
case "port-forward":
suggests = append(flagPortForward, flagGlobal...)
case "proxy":
suggests = append(flagProxy, flagGlobal...)
case "run", "run-container":
suggests = append(flagRun, flagGlobal...)
case "expose":
suggests = append(flagExpose, flagGlobal...)
case "auto-scale":
suggests = append(flagAutoScale, flagGlobal...)
case "rollout":
suggests = flagGlobal
if len(commandArgs) == 2 {
switch commandArgs[1] {
case "history":
suggests = append(suggests, flagRolloutHistory...)
case "pause":
suggests = append(suggests, flagRolloutPause...)
case "resume":
suggests = append(suggests, flagRolloutResume...)
case "undo":
suggests = append(suggests, flagRolloutUndo...)
}
}
case "label":
suggests = append(flagLabel, flagGlobal...)
case "cluster-info":
suggests = flagClusterInfo
case "explain":
suggests = flagExplain
case "cordon":
suggests = append(flagCordon, flagGlobal...)
case "drain":
suggests = flagCordon
case "uncordon":
suggests = optionHelp
case "annotate":
suggests = flagAnnotate
case "convert":
suggests = append(flagConvert, flagGlobal...)
case "top":
suggests = flagGlobal
if len(commandArgs) >= 2 {
switch commandArgs[1] {
case "no", "node", "nodes":
suggests = append(suggests, flagTopNode...)
case "po", "pod", "pods":
suggests = append(suggests, flagTopPod...)
}
}
case "config":
if len(commandArgs) == 2 {
switch commandArgs[1] {
case "view":
suggests = flagConfigView
case "set-cluster":
suggests = flagConfigSetCluster
case "set-credentials":
suggests = flagConfigSetCredentials
case "set-context":
suggests = flagConfigSetContext
case "set":
suggests = flagConfigSet
case "unset":
suggests = flagConfigUnset
case "current-context":
suggests = flagConfigCurrentContext
case "use-context":
suggests = flagConfigUseContext
}
}
default:
suggests = optionHelp
}
if long {
return prompt.FilterContains(
prompt.FilterHasPrefix(suggests, "--", false),
strings.TrimLeft(args[l-1], "--"),
true,
)
}
return prompt.FilterContains(suggests, strings.TrimLeft(args[l-1], "-"), true)
}
var optionHelp = []prompt.Suggest{
{Text: "-h"},
{Text: "--help"},
}
var flagGlobal = []prompt.Suggest{
{Text: "--alsologtostderr", Description: "log to standard error as well as files"},
{Text: "--certificate-authority", Description: "Path to a cert. file for the certificate authority."},
{Text: "--client-certificate", Description: "Path to a client certificate file for TLS."},
{Text: "--client-key", Description: "Path to a client key file for TLS."},
{Text: "--cluster", Description: "The name of the kubeconfig cluster to use"},
{Text: "--context", Description: "The name of the kubeconfig context to use"},
{Text: "--insecure-skip-tls-verify", Description: "If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure."},
{Text: "--kubeconfig", Description: "Path to the kubeconfig file to use for CLI requests."},
{Text: "--log-backtrace-at", Description: "when logging hits line file:N, emit a stack trace"},
{Text: "--log-dir", Description: "If non-empty, write log files in this directory"},
{Text: "--log-flush-frequency", Description: "Maximum number of seconds between log flushes"},
{Text: "--logtostderr", Description: "log to standard error instead of files"},
{Text: "--match-server-version", Description: "Require server version to match client version"},
{Text: "--namespace", Description: "If present, the namespace scope for this CLI request."},
{Text: "--password", Description: "Password for basic authentication to the API server."},
{Text: "-s", Description: "The address and port of the Kubernetes API server"},
{Text: "--server", Description: "The address and port of the Kubernetes API server"},
{Text: "--stderrthreshold", Description: "logs at or above this threshold go to stderr"},
{Text: "--token", Description: "Bearer token for authentication to the API server."},
{Text: "--user", Description: "The name of the kubeconfig user to use"},
{Text: "--username", Description: "Username for basic authentication to the API server."},
{Text: "--v", Description: "log level for V logs"},
{Text: "--vmodule", Description: "comma-separated list of pattern=N settings for file-filtered logging"},
}
var flagGet = []prompt.Suggest{
{Text: "--all-namespaces", Description: "If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace."},
{Text: "--allow-missing-template-keys", Description: "If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats."},
{Text: "--export", Description: "If true, use 'export' for the resources. Exported resources are stripped of cluster-specific information."},
{Text: "-f", Description: "Filename, directory, or URL to files identifying the resource to get from a server."},
{Text: "--filename", Description: "Filename, directory, or URL to files identifying the resource to get from a server."},
{Text: "--include-extended-apis", Description: "If true, include definitions of new APIs via calls to the API server. [default true]"},
{Text: "-L", Description: "Accepts a comma separated list of labels that are going to be presented as columns. Names are case-sensitive. You can also use multiple flag options like -L label1 -L label2..."},
{Text: "--label-columns", Description: "Accepts a comma separated list of labels that are going to be presented as columns. Names are case-sensitive. You can also use multiple flag options like -L label1 -L label2..."},
{Text: "--no-headers", Description: "When using the default or custom-column output format, don't print headers."},
{Text: "-o", Description: "Output format. One of: json|yaml|wide|name|custom-columns=...|custom-columns-file=...|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=..."},
{Text: "--output", Description: "Output format. One of: json|yaml|wide|name|custom-columns=...|custom-columns-file=...|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=..."},
{Text: "--output-version", Description: "Output the formatted object with the given group version (for ex: 'extensions/v1beta1')."},
{Text: "--raw", Description: "Raw URI to request from the server. Uses the transport specified by the kubeconfig file."},
{Text: "-R", Description: "Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory."},
{Text: "--recursive", Description: "Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory."},
{Text: "-l", Description: "Selector (label query) to filter on"},
{Text: "--selector", Description: "Selector (label query) to filter on"},
{Text: "-a", Description: "When printing, show all resources (default hide terminated pods.)"},
{Text: "--show-all", Description: "When printing, show all resources (default hide terminated pods.)"},
{Text: "--show-kind", Description: "If present, list the resource type for the requested object(s)."},
{Text: "--show-labels", Description: "When printing, show all labels as the last column (default hide labels column)"},
{Text: "--sort-by", Description: "If non-empty, sort list types using this field specification. The field specification is expressed as a JSONPath expression (e.g. '{.metadata.name}'). The field in the API resource specified by this JSONPath expression must be an integer or a string."},
{Text: "--template", Description: "Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates."},
{Text: "-w", Description: "After listing/getting the requested object, watch for changes."},
{Text: "--watch", Description: "After listing/getting the requested object, watch for changes."},
{Text: "--watch-only", Description: "Watch for changes to the requested object(s), without listing/getting first."},
}
var flagDescribe = []prompt.Suggest{
{Text: "--all-namespaces", Description: "If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace."},
{Text: "-f", Description: "Filename, directory, or URL to files containing the resource to describe"},
{Text: "--filename", Description: "Filename, directory, or URL to files containing the resource to describe"},
{Text: "--include-extended-apis", Description: "If true, include definitions of new APIs via calls to the API server. [default true]"},
{Text: "-R", Description: "Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory."},
{Text: "--recursive", Description: "Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory."},
{Text: "-l", Description: "Selector (label query) to filter on"},
{Text: "--selector", Description: "Selector (label query) to filter on"},
{Text: "--show-events", Description: "If true, display events related to the described object."},
}
var flagCreate = []prompt.Suggest{
{Text: "--allow-missing-template-keys", Description: "If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats."},
{Text: "--dry-run", Description: "If true, only print the object that would be sent, without sending it."},
{Text: "--edit", Description: "Edit the API resource before creating"},
{Text: "-f", Description: "Filename, directory, or URL to files to use to create the resource"},
{Text: "--filename", Description: "Filename, directory, or URL to files to use to create the resource"},
{Text: "--include-extended-apis", Description: "If true, include definitions of new APIs via calls to the API server. [default true]"},
{Text: "--no-headers", Description: "When using the default or custom-column output format, don't print headers."},
{Text: "-o", Description: "Output format. One of: json|yaml|wide|name|custom-columns=...|custom-columns-file=...|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=..."},
{Text: "--output", Description: "Output format. One of: json|yaml|wide|name|custom-columns=...|custom-columns-file=...|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=..."},
{Text: "--output-version", Description: "Output the formatted object with the given group version (for ex: 'extensions/v1beta1')."},
{Text: "--record", Description: "Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists."},
{Text: "-R", Description: "Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory."},
{Text: "--recursive", Description: "Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory."},
{Text: "--save-config", Description: "If true, the configuration of current object will be saved in its annotation. This is useful when you want to perform kubectl apply on this object in the future."},
{Text: "--schema-cache-dir", Description: "If non-empty, load/store cached API schemas in this directory, default is '$HOME/.kube/schema'"},
{Text: "-a", Description: "When printing, show all resources (default hide terminated pods.)"},
{Text: "--show-all", Description: "When printing, show all resources (default hide terminated pods.)"},
{Text: "--show-labels", Description: "When printing, show all labels as the last column (default hide labels column)"},
{Text: "--sort-by", Description: "If non-empty, sort list types using this field specification. The field specification is expressed as a JSONPath expression (e.g. '{.metadata.name}'). The field in the API resource specified by this JSONPath expression must be an integer or a string."},
{Text: "--template", Description: "Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]."},
{Text: "--validate", Description: "If true, use a schema to validate the input before sending it"},
{Text: "--windows-line-endings", Description: "Only relevant if --edit=true. Use Windows line-endings (default Unix line-endings)"},
}
var flagReplace = []prompt.Suggest{
{Text: "--cascade", Description: "Only relevant during a force replace. If true, cascade the deletion of the resources managed by this resource (e.g. Pods created by a ReplicationController)."},
{Text: "-f", Description: "Filename, directory, or URL to file to use to replace the resource."},
{Text: "--filename", Description: "Filename, directory, or URL to file to use to replace the resource."},
{Text: "--force", Description: "Delete and re-create the specified resource"},
{Text: "--grace-period", Description: "Only relevant during a force replace. Period of time in seconds given to the old resource to terminate gracefully. Ignored if negative."},
{Text: "-o", Description: "Output mode. Use '-o name' for shorter output (resource/name)."},
{Text: "--output", Description: "Output mode. Use '-o name' for shorter output (resource/name)."},
{Text: "--record", Description: "Record current kubectl command in the resource annotation."},
{Text: "--save-config", Description: "If true, the configuration of current object will be saved in its annotation. This is useful when you want to perform kubectl apply on this object in the future."},
{Text: "--schema-cache-dir", Description: "If non-empty, load/store cached API schemas in this directory, default is '$HOME/.kube/schema'"},
{Text: "--timeout", Description: "Only relevant during a force replace. The length of time to wait before giving up on a delete of the old resource, zero means determine a timeout from the size of the object"},
{Text: "--validate", Description: "If true, use a schema to validate the input before sending it"},
}
var flagPatch = []prompt.Suggest{
{Text: "-f", Description: "Filename, directory, or URL to a file identifying the resource to update"},
{Text: "--filename", Description: "Filename, directory, or URL to a file identifying the resource to update"},
{Text: "-o", Description: "Output mode. Use '-o name' for shorter output (resource/name)."},
{Text: "--output", Description: "Output mode. Use '-o name' for shorter output (resource/name)."},
{Text: "-p", Description: "The patch to be applied to the resource JSON file."},
{Text: "--patch", Description: "The patch to be applied to the resource JSON file."},
{Text: "--record", Description: "Record current kubectl command in the resource annotation."},
{Text: "--type", Description: "The type of patch being provided; one of [json merge strategic]"},
}
var flagDelete = []prompt.Suggest{
{Text: "--all", Description: "to select all the specified resources."},
{Text: "--cascade", Description: "If true, cascade the deletion of the resources managed by this resource (e.g. Pods created by a ReplicationController). Default true."},
{Text: "-f", Description: "Filename, directory, or URL to a file containing the resource to delete."},
{Text: "--filename", Description: "Filename, directory, or URL to a file containing the resource to delete."},
{Text: "--grace-period", Description: "Period of time in seconds given to the resource to terminate gracefully. Ignored if negative."},
{Text: "--ignore-not-found", Description: "Treat 'resource not found' as a successful delete. Defaults to 'true' when --all is specified."},
{Text: "-o", Description: "Output mode. Use '-o name' for shorter output (resource/name)."},
{Text: "--output", Description: "Output mode. Use '-o name' for shorter output (resource/name)."},
{Text: "-l", Description: "Selector (label query) to filter on."},
{Text: "--selector", Description: "Selector (label query) to filter on."},
{Text: "--timeout", Description: "The length of time to wait before giving up on a delete, zero means determine a timeout from the size of the object"},
}
var flagEdit = []prompt.Suggest{
{Text: "-f", Description: "Filename, directory, or URL to file to use to edit the resource"},
{Text: "--filename", Description: "Filename, directory, or URL to file to use to edit the resource"},
{Text: "-o", Description: "Output format. One of: yaml|json."},
{Text: "--output", Description: "Output format. One of: yaml|json."},
{Text: "--output-version", Description: "Output the formatted object with the given group version (for ex: 'extensions/v1beta1')."},
{Text: "--record", Description: "Record current kubectl command in the resource annotation."},
{Text: "--save-config", Description: "If true, the configuration of current object will be saved in its annotation. This is useful when you want to perform kubectl apply on this object in the future."},
{Text: "--windows-line-endings", Description: "Use Windows line-endings (default Unix line-endings)"},
}
var flagApply = []prompt.Suggest{
{Text: "-f", Description: "Filename, directory, or URL to file that contains the configuration to apply"},
{Text: "--filename", Description: "Filename, directory, or URL to file that contains the configuration to apply"},
{Text: "-o", Description: "Output mode. Use '-o name' for shorter output (resource/name)."},
{Text: "--output", Description: "Output mode. Use '-o name' for shorter output (resource/name)."},
{Text: "--record", Description: "Record current kubectl command in the resource annotation."},
{Text: "--schema-cache-dir", Description: "If non-empty, load/store cached API schemas in this directory, default is '$HOME/.kube/schema'"},
{Text: "--validate", Description: "If true, use a schema to validate the input before sending it"},
}
var flagLogs = []prompt.Suggest{
{Text: "-c", Description: "Print the logs of this container"},
{Text: "--container", Description: "Print the logs of this container"},
{Text: "-f", Description: "Specify if the logs should be streamed."},
{Text: "--follow", Description: "Specify if the logs should be streamed."},
{Text: "--limit-bytes", Description: "Maximum bytes of logs to return. Defaults to no limit."},
{Text: "-p", Description: "If true, print the logs for the previous instance of the container in a pod if it exists."},
{Text: "--previous", Description: "If true, print the logs for the previous instance of the container in a pod if it exists."},
{Text: "--since", Description: "Only return logs newer than a relative duration like 5s, 2m, or 3h. Defaults to all logs. Only one of since-time / since may be used."},
{Text: "--since-time", Description: "Only return logs after a specific date (RFC3339). Defaults to all logs. Only one of since-time / since may be used."},
{Text: "--tail", Description: "Lines of recent log file to display. Defaults to -1, showing all log lines."},
{Text: "--timestamps", Description: "Include timestamps on each line in the log output"},
}
var flagRollingUpdate = []prompt.Suggest{
{Text: "--container", Description: "Container name which will have its image upgraded. Only relevant when --image is specified, ignored otherwise. Required when using --image on a multi-container pod"},
{Text: "--deployment-label-key", Description: "The key to use to differentiate between two different controllers, default 'deployment'. Only relevant when --image is specified, ignored otherwise"},
{Text: "--dry-run", Description: "If true, print out the changes that would be made, but don't actually make them."},
{Text: "-f", Description: "Filename or URL to file to use to create the new replication controller."},
{Text: "--filename", Description: "Filename or URL to file to use to create the new replication controller."},
{Text: "--image", Description: "Image to use for upgrading the replication controller. Must be distinct from the existing image (either new image or new image tag). Can not be used with --filename/-f"},
{Text: "--no-headers", Description: "When using the default output, don't print headers."},
{Text: "-o", Description: "Output format. One of: json|yaml|wide|name|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See golang template and jsonpath template."},
{Text: "--output", Description: "Output format. One of: json|yaml|wide|name|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See golang template and jsonpath template."},
{Text: "--output-version", Description: "Output the formatted object with the given group version (for ex: 'extensions/v1beta1')."},
{Text: "--poll-interval", Description: "Time delay between polling for replication controller status after the update. Valid time units are 'ns', 'us' (or 'µs'), 'ms', 's', 'm', 'h'."},
{Text: "--rollback", Description: "If true, this is a request to abort an existing rollout that is partially rolled out. It effectively reverses current and next and runs a rollout"},
{Text: "--schema-cache-dir", Description: "If non-empty, load/store cached API schemas in this directory, default is '$HOME/.kube/schema'"},
{Text: "-a", Description: "When printing, show all resources (default hide terminated pods.)"},
{Text: "--show-all", Description: "When printing, show all resources (default hide terminated pods.)"},
{Text: "--show-labels", Description: "When printing, show all labels as the last column (default hide labels column)"},
{Text: "--sort-by", Description: "If non-empty, sort list types using this field specification. The field specification is expressed as a JSONPath expression (e.g. '{.metadata.name}'). The field in the API resource specified by this JSONPath expression must be an integer or a string."},
{Text: "--template", Description: "Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]."},
{Text: "--timeout", Description: "Max time to wait for a replication controller to update before giving up. Valid time units are 'ns', 'us' (or 'µs'), 'ms', 's', 'm', 'h'."},
{Text: "--update-period", Description: "Time to wait between updating pods. Valid time units are 'ns', 'us' (or 'µs'), 'ms', 's', 'm', 'h'."},
{Text: "--validate", Description: "If true, use a schema to validate the input before sending it"},
}
var flagCordon = []prompt.Suggest{
{Text: "--force", Description: "Continue even if there are pods not managed by a ReplicationController, ReplicaSet, Job, or DaemonSet."},
{Text: "--grace-period", Description: "Period of time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used."},
{Text: "--ignore-daemonsets", Description: "Ignore DaemonSet-managed pods."},
}
var flagScale = []prompt.Suggest{
{Text: "--current-replicas", Description: "Precondition for current size. Requires that the current size of the resource match this value in order to scale."},
{Text: "-f", Description: "Filename, directory, or URL to a file identifying the resource to set a new size"},
{Text: "--filename", Description: "Filename, directory, or URL to a file identifying the resource to set a new size"},
{Text: "-o", Description: "Output mode. Use '-o name' for shorter output (resource/name)."},
{Text: "--output", Description: "Output mode. Use '-o name' for shorter output (resource/name)."},
{Text: "--record", Description: "Record current kubectl command in the resource annotation."},
{Text: "--replicas", Description: "The new desired number of replicas. Required."},
{Text: "--resource-version", Description: "Precondition for resource version. Requires that the current resource version match this value in order to scale."},
{Text: "--timeout", Description: "The length of time to wait before giving up on a scale operation, zero means don't wait."},
}
var flagAttach = []prompt.Suggest{
{Text: "-c", Description: "Container name. If omitted, the first container in the pod will be chosen"},
{Text: "--container", Description: "Container name. If omitted, the first container in the pod will be chosen"},
{Text: "-i", Description: "Pass stdin to the container"},
{Text: "--stdin", Description: "Pass stdin to the container"},
{Text: "-t", Description: "Stdin is a TTY"},
{Text: "--tty", Description: "Stdin is a TTY"},
}
var flagExec = []prompt.Suggest{
{Text: "-c", Description: "Container name. If omitted, the first container in the pod will be chosen"},
{Text: "--container", Description: "Container name. If omitted, the first container in the pod will be chosen"},
{Text: "-p", Description: "Pod name"},
{Text: "--pod", Description: "Pod name"},
{Text: "-i", Description: "Pass stdin to the container"},
{Text: "--stdin", Description: "Pass stdin to the container"},
{Text: "-t", Description: "Stdin is a TTY"},
{Text: "--tty", Description: "Stdin is a TTY"},
9798
div>}
var flagPortForward = []prompt.Suggest{
{Text: "-p", Description: "Pod name"},
{Text: "--pod", Description: "Pod name"},
}
var flagProxy = []prompt.Suggest{
{Text: "--accept-hosts", Description: "Regular expression for hosts that the proxy should accept."},
{Text: "--accept-paths", Description: "Regular expression for paths that the proxy should accept. (default '^/.*')"},
{Text: "--address", Description: "The IP address on which to serve on. (default '127.0.0.1')"},
{Text: "--api-prefix", Description: "Prefix to serve the proxied API under. (default '/')"},
{Text: "--disable-filter", Description: "If true, disable request filtering in the proxy. This is dangerous, and can leave you vulnerable to XSRF attacks, when used with an accessible port."},
{Text: "-p", Description: "The port on which to run the proxy. Set to 0 to pick a random port. (default: 8001)"},
{Text: "--port", Description: "The port on which to run the proxy. Set to 0 to pick a random port. (default: 8001)"},
{Text: "--reject-methods", Description: "Regular expression for HTTP methods that the proxy should reject. (default 'POST,PUT,PATCH')"},
{Text: "--reject-paths", Description: "Regular expression for paths that the proxy should reject. (default '^/api/.*/exec,^/api/.*/run,^/api/.*/attach')"},
{Text: "-u", Description: "Unix socket on which to run the proxy."},
{Text: "--unix-socket", Description: "Unix socket on which to run the proxy."},
{Text: "-w", Description: "Also serve static files from the given directory under the specified prefix."},
{Text: "--www", Description: "Also serve static files from the given directory under the specified prefix."},
{Text: "-P", Description: "Prefix to serve static files under, if static file directory is specified. (default '/static/')"},
{Text: "--www-prefix", Description: "Prefix to serve static files under, if static file directory is specified. (default '/static/')"},
}
var flagRun = []prompt.Suggest{
{Text: "--attach", Description: "If true, wait for the Pod to start running, and then attach to the Pod as if 'kubectl attach ...' were called. Default false, unless '-i/--interactive' is set, in which case the default is true."},
{Text: "--command", Description: "If true and extra arguments are present, use them as the 'command' field in the container, rather than the 'args' field which is the default."},
{Text: "--dry-run", Description: "If true, only print the object that would be sent, without sending it."},
{Text: "--env", Description: "Environment variables to set in the container"},
{Text: "--expose", Description: "If true, a public, external service is created for the container(s) which are run"},
{Text: "--generator", Description: "The name of the API generator to use. Default is 'deployment/v1beta1' if --restart=Always, otherwise the default is 'job/v1'. This will happen only for cluster version at least 1.2, for olders we will fallback to 'run/v1' for --restart=Always, 'run-pod/v1' for others."},
{Text: "--hostport", Description: "The host port mapping for the container port. To demonstrate a single-machine container."},
{Text: "--image", Description: "The image for the container to run."},
{Text: "-l", Description: "Labels to apply to the pod(s)."},
{Text: "--labels", Description: "Labels to apply to the pod(s)."},
{Text: "--leave-stdin-open ", Description: "If the pod is started in interactive mode or with stdin, leave stdin open after the first attach completes. By default, stdin will be closed after the first attach completes."},
{Text: "--limits", Description: "The resource requirement limits for this container. For example, 'cpu=200m,memory=512Mi'"},
{Text: "--no-headers", Description: "When using the default output, don't print headers."},
{Text: "-o", Description: "Output format. One of: json|yaml|wide|name|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [http://releases.k8s.io/release-1.2/docs/user-guide/jsonpath.md]."},
{Text: "--output", Description: "Output format. One of: json|yaml|wide|name|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [http://releases.k8s.io/release-1.2/docs/user-guide/jsonpath.md]."},
{Text: "--output-version", Description: "Output the formatted object with the given group version (for ex: 'extensions/v1beta1')."},
{Text: "--overrides", Description: "An inline JSON override for the generated object. If this is non-empty, it is used to override the generated object. Requires that the object supply a valid apiVersion field."},
{Text: "--port", Description: "The port that this container exposes. If --expose is true, this is also the port used by the service that is created."},
{Text: "--record", Description: "Record current kubectl command in the resource annotation."},
{Text: "-r", Description: "Number of replicas to create for this container. Default is 1."},
{Text: "--replicas", Description: "Number of replicas to create for this container. Default is 1."},
{Text: "--requests", Description: "The resource requirement requests for this container. For example, 'cpu=100m,memory=256Mi'"},
{Text: "--restart", Description: "The restart policy for this Pod. Legal values [Always, OnFailure, Never]. If set to 'Always' a deployment is created for this pod, if set to OnFailure or Never, a job is created for this pod and --replicas must be 1. Default 'Always'"},
{Text: "--rm", Description: "If true, delete resources created in this command for attached containers."},
{Text: "--save-config", Description: "If true, the configuration of current object will be saved in its annotation. This is useful when you want to perform kubectl apply on this object in the future."},
{Text: "--service-generator", Description: "The name of the generator to use for creating a service. Only used if --expose is true"},
{Text: "--service-overrides", Description: "An inline JSON override for the generated service object. If this is non-empty, it is used to override the generated object. Requires that the object supply a valid apiVersion field. Only used if --expose is true."},
{Text: "-a", Description: "When printing, show all resources (default hide terminated pods.)"},
{Text: "--show-all", Description: "When printing, show all resources (default hide terminated pods.)"},
{Text: "--show-labels", Description: "When printing, show all labels as the last column (default hide labels column)"},
{Text: "--sort-by", Description: "If non-empty, sort list types using this field specification. The field specification is expressed as a JSONPath expression (e.g. '{.metadata.name}'). The field in the API resource specified by this JSONPath expression must be an integer or a string."},
{Text: "-i", Description: "Keep stdin open on the container(s) in the pod, even if nothing is attached."},
{Text: "--stdin", Description: "Keep stdin open on the container(s) in the pod, even if nothing is attached."},
{Text: "--template", Description: "Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]."},
{Text: "--tty", Description: "Allocated a TTY for each container in the pod. Because -t is currently shorthand for --template, -t is not supported for --tty. This shorthand is deprecated and we expect to adopt -t for --tty soon."},
}
var flagExpose = []prompt.Suggest{
{Text: "--container-port", Description: "IP to assign to to the Load Balancer. If empty, an ephemeral IP will be created and used (cloud-provider specific)."},
{Text: "--dry-run", Description: "The name for the newly created object."},
{Text: "--external-ip", Description: "When using the default output, don't print headers."},
{Text: "-f", Description: "Output format. One of: json|yaml|wide|name|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [http://releases.k8s.io/release-1.2/docs/user-guide/jsonpath.md]."},
{Text: "--filename", Description: "Output format. One of: json|yaml|wide|name|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [http://releases.k8s.io/release-1.2/docs/user-guide/jsonpath.md]."},
{Text: "--generator", Description: "Output the formatted object with the given group version (for ex: 'extensions/v1beta1')."},
{Text: "-l", Description: "An inline JSON override for the generated object. If this is non-empty, it is used to override the generated object. Requires that the object supply a valid apiVersion field."},
{Text: "--labels", Description: "The port that the service should serve on. Copied from the resource being exposed, if unspecified"},
{Text: "--load-balancer-ip", Description: "The network protocol for the service to be created. Default is 'tcp'."},
{Text: "--name", Description: "Record current kubectl command in the resource annotation."},
{Text: "--no-headers", Description: "If true, the configuration of current object will be saved in its annotation. This is useful when you want to perform kubectl apply on this object in the future."},
{Text: "-o", Description: "A label selector to use for this service. Only equality-based selector requirements are supported. If empty (the default) infer the selector from the replication controller or replica set."},
{Text: "--output", Description: "If non-empty, set the session affinity for the service to this; legal values: 'None', 'ClientIP'"},
{Text: "--output-version", Description: "When printing, show all resources (default hide terminated pods.)"},
{Text: "--overrides", Description: "When printing, show all resources (default hide terminated pods.)"},
{Text: "--port", Description: "When printing, show all labels as the last column (default hide labels column)"},
{Text: "--protocol", Description: "If non-empty, sort list types using this field specification. The field specification is expressed as a JSONPath expression (e.g. '{.metadata.name}'). The field in the API resource specified by this JSONPath expression must be an integer or a string."},
{Text: "--record", Description: "Name or number for the port on the container that the service should direct traffic to. Optional."},
{Text: "--save-config", Description: "Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]."},
{Text: "--selector", Description: "Type for this service: ClusterIP, NodePort, or LoadBalancer. Default is 'ClusterIP'."},
{Text: "--session-affinity", Description: "Synonym for --target-port"},
{Text: "-a", Description: "If true, only print the object that would be sent, without creating it."},
{Text: "--show-all", Description: "Additional external IP address (not managed by Kubernetes) to accept for the service. If this IP is routed to a node, the service can be accessed by this IP in addition to its generated service IP."},
{Text: "--show-labels", Description: "Filename, directory, or URL to a file identifying the resource to expose a service"},
{Text: "--sort-by", Description: "Filename, directory, or URL to a file identifying the resource to expose a service"},
{Text: "--target-port", Description: "The name of the API generator to use. There are 2 generators: 'service/v1' and 'service/v2'. The only difference between them is that service port in v1 is named 'default', while it is left unnamed in v2. Default is 'service/v2'."},
{Text: "--template", Description: "Labels to apply to the service created by this call."},
{Text: "--type", Description: "Labels to apply to the service created by this call."},
}
var flagRolloutHistory = []prompt.Suggest{
{Text: "-f", Description: "Filename, directory, or URL to a file identifying the resource to get from a server."},
{Text: "--filename", Description: "Filename, directory, or URL to a file identifying the resource to get from a server."},
{Text: "--revision", Description: "See the details, including podTemplate of the revision specified"},
}
var flagRolloutPause = []prompt.Suggest{
{Text: "-f", Description: "Filename, directory, or URL to a file identifying the resource to get from a server."},
{Text: "--filename", Description: "Filename, directory, or URL to a file identifying the resource to get from a server."},
}
var flagRolloutResume = []prompt.Suggest{
{Text: "-f", Description: "Filename, directory, or URL to a file identifying the resource to get from a server."},
{Text: "--filename", Description: "Filename, directory, or URL to a file identifying the resource to get from a server."},
}
var flagRolloutUndo = []prompt.Suggest{
{Text: "-f", Description: "Filename, directory, or URL to a file identifying the resource to get from a server."},
{Text: "--filename", Description: "Filename, directory, or URL to a file identifying the resource to get from a server."},
{Text: "--to-revision", Description: "The revision to rollback to. Default to 0 (last revision)."},
}
var flagLabel = []prompt.Suggest{
{Text: "--all", Description: "select all resources in the namespace of the specified resource types"},
{Text: "--dry-run", Description: "If true, only print the object that would be sent, without sending it."},
{Text: "-f", Description: "Filename, directory, or URL to a file identifying the resource to update the labels"},
{Text: "--filename", Description: "Filename, directory, or URL to a file identifying the resource to update the labels"},
{Text: "--no-headers", Description: "When using the default output, don't print headers."},
{Text: "-o", Description: "Output format. One of: json|yaml|wide|name|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [http://releases.k8s.io/release-1.2/docs/user-guide/jsonpath.md]."},
{Text: "--output", Description: "Output format. One of: json|yaml|wide|name|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [http://releases.k8s.io/release-1.2/docs/user-guide/jsonpath.md]."},
{Text: "--output-version", Description: "Output the formatted object with the given group version (for ex: 'extensions/v1beta1')."},
{Text: "--overwrite", Description: "If true, allow labels to be overwritten, otherwise reject label updates that overwrite existing labels."},
{Text: "--record", Description: "Record current kubectl command in the resource annotation."},
{Text: "--resource-version", Description: "If non-empty, the labels update will only succeed if this is the current resource-version for the object. Only valid when specifying a single resource."},
{Text: "-l", Description: "Selector (label query) to filter on"},
{Text: "--selector", Description: "Selector (label query) to filter on"},
{Text: "-a", Description: "When printing, show all labels as the last column (default hide labels column)"},
{Text: "--show-labels", Description: "When printing, show all labels as the last column (default hide labels column)"},
{Text: "--sort-by", Description: "If non-empty, sort list types using this field specification. The field specification is expressed as a JSONPath expression (e.g. '{.metadata.name}'). The field in the API resource specified by this JSONPath expression must be an integer or a string."},
{Text: "--template", Description: "Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]."},
}
var flagAnnotate = []prompt.Suggest{
{Text: "--all", Description: "select all resources in the namespace of the specified resource types"},
{Text: "-f", Description: "Filename, directory, or URL to a file identifying the resource to update the annotation"},
{Text: "--filename", Description: "Filename, directory, or URL to a file identifying the resource to update the annotation"},
{Text: "--no-headers", Description: "When using the default output, don't print headers."},
{Text: "-o", Description: "Output format. One of: json|yaml|wide|name|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [http://releases.k8s.io/release-1.2/docs/user-guide/jsonpath.md]."},
{Text: "--output", Description: "Output format. One of: json|yaml|wide|name|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [http://releases.k8s.io/release-1.2/docs/user-guide/jsonpath.md]."},
{Text: "--output-version", Description: "Output the formatted object with the given group version (for ex: 'extensions/v1beta1')."},
{Text: "--overwrite", Description: "If true, allow annotations to be overwritten, otherwise reject annotation updates that overwrite existing annotations."},
{Text: "--record", Description: "Record current kubectl command in the resource annotation."},
{Text: "--resource-version", Description: "If non-empty, the annotation update will only succeed if this is the current resource-version for the object. Only valid when specifying a single resource."},
{Text: "-l", Description: "Selector (label query) to filter on"},
{Text: "--selector", Description: "Selector (label query) to filter on"},
{Text: "-a", Description: "When printing, show all resources (default hide terminated pods.)"},
{Text: "--show-all", Description: "When printing, show all resources (default hide terminated pods.)"},
{Text: "--show-labels", Description: "When printing, show all labels as the last column (default hide labels column)"},
{Text: "--sort-by", Description: "If non-empty, sort list types using this field specification. The field specification is expressed as a JSONPath expression (e.g. '{.metadata.name}'). The field in the API resource specified by this JSONPath expression must be an integer or a string."},
{Text: "--template", Description: "Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]."},
}
var flagClusterInfo = []prompt.Suggest{
{Text: "--include-extended-apis", Description: "If true, include definitions of new APIs via calls to the API server. [default true]"},
}
var flagExplain = []prompt.Suggest{
{Text: "--include-extended-apis", Description: "If true, include definitions of new APIs via calls to the API server. [default true]"},
{Text: "--recursive", Description: "Print the fields of fields (Currently only 1 level deep)"},
}
var flagAutoScale = []prompt.Suggest{
{Text: "--cpu-percent", Description: "The target average CPU utilization (represented as a percent of requested CPU) over all the pods. If it's not specified or negative, the server will apply a default value."},
{Text: "--dry-run", Description: "If true, only print the object that would be sent, without creating it."},
{Text: "-f", Description: "Filename, directory, or URL to a file identifying the resource to autoscale."},
{Text: "--filename", Description: "Filename, directory, or URL to a file identifying the resource to autoscale."},
{Text: "--generator", Description: "The name of the API generator to use. Currently there is only 1 generator."},
{Text: "--max", Description: "The upper limit for the number of pods that can be set by the autoscaler. Required."},
{Text: "--min", Description: "The lower limit for the number of pods that can be set by the autoscaler. If it's not specified or negative, the server will apply a default value."},
{Text: "--name", Description: "The name for the newly created object. If not specified, the name of the input resource will be used."},
{Text: "--no-headers", Description: "When using the default output, don't print headers."},
{Text: "-o", Description: "Output format. One of: json|yaml|wide|name|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [http://releases.k8s.io/release-1.2/docs/user-guide/jsonpath.md]."},
{Text: "--output", Description: "Output format. One of: json|yaml|wide|name|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [http://releases.k8s.io/release-1.2/docs/user-guide/jsonpath.md]."},
{Text: "--output-version", Description: "Output the formatted object with the given group version (for ex: 'extensions/v1beta1')."},
{Text: "--record", Description: "Record current kubectl command in the resource annotation."},
{Text: "--save-config", Description: "If true, the configuration of current object will be saved in its annotation. This is useful when you want to perform kubectl apply on this object in the future."},
{Text: "-a", Description: "When printing, show all resources (default hide terminated pods.)"},
{Text: "--show-all", Description: "When printing, show all resources (default hide terminated pods.)"},
{Text: "--show-labels", Description: "When printing, show all labels as the last column (default hide labels column)"},
{Text: "--sort-by", Description: "If non-empty, sort list types using this field specification. The field specification is expressed as a JSONPath expression (e.g. '{.metadata.name}'). The field in the API resource specified by this JSONPath expression must be an integer or a string."},
{Text: "--template", Description: "Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]."},
}
var flagConvert = []prompt.Suggest{
{Text: "-f", Description: "Filename, directory, or URL to file to need to get converted."},
{Text: "--filename", Description: "Filename, directory, or URL to file to need to get converted."},
{Text: "--local", Description: "If true, convert will NOT try to contact api-server but run locally."},
{Text: "--no-headers", Description: "When using the default output, don't print headers."},
{Text: "-o", Description: "Output format. One of: json|yaml|wide|name|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [http://releases.k8s.io/release-1.2/docs/user-guide/jsonpath.md]."},
{Text: "--output", Description: "Output format. One of: json|yaml|wide|name|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [http://releases.k8s.io/release-1.2/docs/user-guide/jsonpath.md]."},
{Text: "--output-version", Description: "Output the formatted object with the given group version (for ex: 'extensions/v1beta1')."},
{Text: "--schema-cache-dir", Description: "If non-empty, load/store cached API schemas in this directory, default is '$HOME/.kube/schema'"},
{Text: "-a", Description: "When printing, show all resources (default hide terminated pods.)"},
{Text: "--show-all", Description: "When printing, show all resources (default hide terminated pods.)"},
{Text: "--show-labels", Description: "When printing, show all labels as the last column (default hide labels column)"},
{Text: "--sort-by", Description: "If non-empty, sort list types using this field specification. The field specification is expressed as a JSONPath expression (e.g. '{.metadata.name}'). The field in the API resource specified by this JSONPath expression must be an integer or a string."},
{Text: "--template", Description: "Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]."},
{Text: "--validate", Description: "If true, use a schema to validate the input before sending it"},
}
var flagTopNode = []prompt.Suggest{
{Text: "--heapster-namespace", Description: "Namespace Heapster service is located in."},
{Text: "--heapster-port", Description: "Port name in service to use."},
{Text: "--heapster-scheme", Description: "Scheme (http or https) to connect to Heapster as."},
{Text: "--heapster-service", Description: "Name of Heapster service."},
{Text: "-l", Description: "Selector (label query) to filter on"},
{Text: "--selector", Description: "Selector (label query) to filter on"},
}
var flagTopPod = []prompt.Suggest{
{Text: "--all-namespaces", Description: "If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace."},
{Text: "--containers", Description: "If present, print usage of containers within a pod."},
{Text: "--heapster-namespace", Description: "Namespace Heapster service is located in."},
{Text: "--heapster-port", Description: "Port name in service to use."},
{Text: "--heapster-scheme", Description: "Scheme (http or https) to connect to Heapster as."},
{Text: "--heapster-service", Description: "Name of Heapster service."},
{Text: "-l", Description: "Selector (label query) to filter on"},
{Text: "--selector", Description: "Selector (label query) to filter on"},
}
var flagConfigView = []prompt.Suggest{
{Text: "--allow-missing-template-keys", Description: "If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats."},
{Text: "--flatten", Description: "flatten the resulting kubeconfig file into self-contained output (useful for creating portable kubeconfig files)"},
{Text: "--merge", Description: "merge the full hierarchy of kubeconfig files"},
{Text: "--minify", Description: "remove all information not used by current-context from the output"},
{Text: "--no-headers", Description: "When using the default or custom-column output format, don't print headers."},
{Text: "-o", Description: "Output format. One of: json|yaml|wide|name|custom-columns=...|custom-columns-file=...|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=..."},
{Text: "--output", Description: "Output format. One of: json|yaml|wide|name|custom-columns=...|custom-columns-file=...|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=..."},
{Text: "--output-version", Description: "Output the formatted object with the given group version (for ex: 'extensions/v1beta1')."},
{Text: "--raw", Description: "display raw byte data"},
{Text: "--show-all", Description: "When printing, show all resources (default hide terminated pods.)"},
{Text: "-a", Description: "When printing, show all resources (default hide terminated pods.)"},
{Text: "--show-labels", Description: "When printing, show all labels as the last column (default hide labels column)"},
{Text: "--sort-by", Description: "If non-empty, sort list types using this field specification. The field specification is expressed as a JSONPath expression (e.g. '{.metadata.name}'). The field in the API resource specified by this JSONPath expression must be an integer or a string."},
{Text: "--template", Description: "Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]."},
}
var flagConfigSetCluster = []prompt.Suggest{
{Text: "--api-version", Description: "api-version for the cluster entry in kubeconfig"},
{Text: "--certificate-authority", Description: "path to certificate-authority for the cluster entry in kubeconfig"},
{Text: "--embed-certs", Description: "embed-certs for the cluster entry in kubeconfig"},
{Text: "--insecure-skip-tls-verify", Description: "insecure-skip-tls-verify for the cluster entry in kubeconfig"},
{Text: "--server", Description: "server for the cluster entry in kubeconfig"},
}
var flagConfigSetCredentials = []prompt.Suggest{
{Text: "--client-certificate", Description: "path to client-certificate for the user entry in kubeconfig"},
{Text: "--client-key", Description: "path to client-key for the user entry in kubeconfig"},
{Text: "--embed-certs", Description: "embed client cert/key for the user entry in kubeconfig"},
{Text: "--password", Description: "password for the user entry in kubeconfig"},
{Text: "--token", Description: "token for the user entry in kubeconfig"},
{Text: "--username", Description: "username for the user entry in kubeconfig"},
}
var flagConfigSetContext = []prompt.Suggest{
{Text: "--cluster", Description: "cluster for the context entry in kubeconfig"},
{Text: "--namespace", Description: "namespace for the context entry in kubeconfig"},
{Text: "--user", Description: "user for the context entry in kubeconfig"},
}
var flagConfigSet = []prompt.Suggest{}
var flagConfigUnset = []prompt.Suggest{}
var flagConfigCurrentContext = []prompt.Suggest{}
var flagConfigUseContext = []prompt.Suggest{}
You can’t perform that action at this time.