forked from evanlucas/fish-kubectl-completions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kubectl.fish
1614 lines (1446 loc) · 209 KB
/
kubectl.fish
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
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#
set -q FISH_KUBECTL_COMPLETION_TIMEOUT; or set FISH_KUBECTL_COMPLETION_TIMEOUT 5s
set __fish_kubectl_timeout "--request-timeout=$FISH_KUBECTL_COMPLETION_TIMEOUT"
set __fish_kubectl_all_namespaces_flags "--all-namespaces" "--all-namespaces=true"
set __fish_kubectl_subresource_commands get describe delete edit label explain
set __fish_kubectl_commands alpha \
annotate \
api-resources \
api-versions \
apply \
attach \
auth \
autoscale \
certificate \
cluster-info \
completion \
config \
convert \
cordon \
cp \
create \
delete \
describe \
drain \
edit \
exec \
explain \
expose \
get \
label \
logs \
log \
options \
patch \
plugin \
port-forward \
proxy \
replace \
rolling-update \
rollout \
run \
run-container \
scale \
set \
taint \
top \
uncordon \
version \
wait
function __fish_kubectl
set -l context_args
if set -l context_flags (__fish_kubectl_get_context_flags | string split " ")
for c in $context_flags
set context_args $context_args $c
end
end
command kubectl $__fish_kubectl_timeout $context_args $argv
end
function __fish_kubectl_get_commands
echo alpha\t'Commands for features in alpha'
echo annotate\t'Update the annotations on a resource'
echo api-resources\t'Print the supported API resources on the server'
echo api-versions\t'Print the supported API versions on the server, in the form of "group/version"'
echo apply\t'Apply a configuration to a resource by filename or stdin'
echo attach\t'Attach to a running container'
echo auth\t'Inspect authorization'
echo autoscale\t'Auto-scale a Deployment, ReplicaSet, or ReplicationController'
echo certificate\t'Modify certificate resources.'
echo cluster-info\t'Display cluster info'
echo completion\t'Output shell completion code for the specified shell (bash or zsh)'
echo config\t'Modify kubeconfig files'
echo convert\t'Convert config files between different API versions'
echo cordon\t'Mark node as unschedulable'
echo cp\t'Copy files and directories to and from containers.'
echo create\t'Create a resource from a file or from stdin.'
echo delete\t'Delete resources by filenames, stdin, resources and names, or by resources and label selector'
echo describe\t'Show details of a specific resource or group of resources'
echo drain\t'Drain node in preparation for maintenance'
echo edit\t'Edit a resource on the server'
echo exec\t'Execute a command in a container'
echo explain\t'Documentation of resources'
echo expose\t'Take a replication controller, service, deployment or pod and expose it as a new Kubernetes Service'
echo get\t'Display one or many resources'
echo label\t'Update the labels on a resource'
echo logs\t'Print the logs for a container in a pod'
echo log\t'Print the logs for a container in a pod'
echo options\t'Print the list of flags inherited by all commands'
echo patch\t'Update field(s) of a resource using strategic merge patch'
echo plugin\t'Provides utilities for interacting with plugins.'
echo port-forward\t'Forward one or more local ports to a pod'
echo proxy\t'Run a proxy to the Kubernetes API server'
echo replace\t'Replace a resource by filename or stdin'
echo rolling-update\t'Perform a rolling update. This command is deprecated, use rollout instead.'
echo rollout\t'Manage the rollout of a resource'
echo run\t'Run a particular image on the cluster'
echo run-container\t'Run a particular image on the cluster. This command is deprecated, use "run" instead'
echo scale\t'Set a new size for a Deployment, ReplicaSet, Replication Controller, or Job'
echo set\t'Set specific features on objects'
echo taint\t'Update the taints on one or more nodes'
echo top\t'Display Resource (CPU/Memory/Storage) usage.'
echo uncordon\t'Mark node as schedulable'
echo version\t'Print the client and server version information'
echo wait\t'Experimental: Wait for a specific condition on one or many resources.'
end
set __fish_kubectl_resources \
all \
certificatesigningrequests csr \
clusterrolebindings \
clusterroles \
clusters \
componentstatuses cs \
configmaps configmap cm \
controllerrevisions \
cronjobs cj \
customresourcedefinition crd crds \
daemonsets ds \
deployments deployment deploy \
endpoints ep \
events ev \
horizontalpodautoscalers hpa \
ingresses ingress ing \
jobs job \
limitranges limits \
namespaces namespace ns \
networkpolicies netpol \
nodes node no \
persistentvolumeclaims pvc \
persistentvolumes pv \
poddisruptionbudgets pdb \
podpreset \
pods pod po \
podsecuritypolicies psp \
podtemplates \
replicasets rs \
replicationcontrollers rc \
resourcequotas quota \
rolebindings \
roles \
secrets secret \
serviceaccounts sa \
services service svc \
statefulsets sts \
storageclass storageclasses sc
function __fish_kubectl_get_crds
__fish_kubectl get crd -o jsonpath='{range .items[*]}{.spec.names.plural}{"\n"}{.spec.names.singular}{"\n"}{end}'
end
function __fish_kubectl_seen_subcommand_from_regex
set -l cmd (commandline -poc)
set -e cmd[1]
for i in $cmd
for r in $argv
if string match -r $r $i
return 0
end
end
end
return 1
end
function __fish_kubectl_needs_command -d 'Test if kubectl has yet to be given the subcommand'
for i in (commandline -opc)
if contains -- $i $__fish_kubectl_commands
echo "$i"
return 1
end
end
return 0
end
function __fish_kubectl_needs_resource -d 'Test if kubectl has yet to be given the subcommand resource'
set -l resources (__fish_kubectl_print_resource_types)
for i in (commandline -opc)
if contains -- $i $resources
return 1
end
end
return 0
end
function __fish_kubectl_using_command
set -l cmd (__fish_kubectl_needs_command)
test -z "$cmd"
and return 1
contains -- $cmd $argv
and echo "$cmd"
and return 0
return 1
end
function __fish_kubectl_using_resource
set -l cmd (__fish_kubectl_needs_resource)
test -z "$cmd"
and return 1
contains -- $cmd $argv
and echo "$cmd"
and return 0
return 1
end
function __fish_kubectl_has_partial_resource_match
set -l last (commandline -opt)
if not set -l matches (string match "(.*)/" $last)
return
end
if string match -q "(.*)/" $last
return 0
end
return 1
end
function __fish_kubectl_print_matching_resources
set -l last (commandline -opt)
if not set -l matches (string match -r "(.*)/" $last)
return
end
set -l prefix $matches[2]
set -l resources (__fish_kubectl_print_resource "$prefix")
for i in $resources
echo "$prefix/$i"
end
end
function __fish_kubectl_get_ns_flags
set -l cmd (commandline -opc)
if [ (count $cmd) -eq 0 ]
return 1
end
set -l foundNamespace 0
for c in $cmd
test $foundNamespace -eq 1
set -l out "--namespace" "$c"
and echo $out
and return 0
if contains -- $c $__kubectl_all_namespaces_flags
echo "--all-namespaces"
return 0
end
if contains -- $c "--namespace" "-n"
set foundNamespace 1
end
end
return 1
end
function __fish_kubectl_get_context_flags
set -l cmd (commandline -opc)
if [ (count $cmd) -eq 0 ]
return 1
end
set -l foundContext 0
for c in $cmd
test $foundContext -eq 1
set -l out "--context" "$c"
and echo $out
and return 0
if string match -q -r -- "--context=" $c
set -l out (string split -- "=" $c | string join " ")
and echo $out
and return 0
else if contains -- $c "--context"
set foundContext 1
end
end
return 1
end
function __fish_kubectl_print_resource_types
for r in $__fish_kubectl_resources
echo $r
end
set -l crds (__fish_kubectl_get_crds)
for r in $crds
echo $r
end
end
function __fish_kubectl_print_current_resources -d 'Prints current resources'
set -l found 0
# There is probably a better way to do this...
# found === 1 means that we have not yet found the crd type
# found === 2 means that we have not yet found the crd name, but have found the type
set -l current_resource
set -l crd_types (__fish_kubectl_get_crds)
for i in (commandline -opc)
if test $found -eq 0
if contains -- $i $__fish_kubectl_subresource_commands
set found 1
end
end
if test $found -eq 1
if contains -- $i $crd_types
set -l out (__fish_kubectl_print_resource $i)
for item in $out
echo "$item"
end
return 0
end
end
end
end
function __fish_kubectl_print_resource -d 'Print a list of resources' -a resource
set -l args
if set -l ns_flags (__fish_kubectl_get_ns_flags | string split " ")
for ns in $ns_flags
set args $args $ns
end
end
set args $args get "$resource" -o name
__fish_kubectl $args | string replace -r '(.*)/' ''
end
function __fish_kubectl_get_config -a type
set -l template "{{ range .$type }}"'{{ .name }}{{"\n"}}{{ end }}'
__fish_kubectl config view -o template --template="$template"
end
function __fish_kubectl_get_rollout_resources
set -l args
if set -l ns_flags (__fish_kubectl_get_ns_flags | string split " ")
for ns in $ns_flags
set args $args $ns
end
end
set -l template '{range .items[*]}{.metadata.name}{"\n"}{end}'
set -l deploys (__fish_kubectl $args get deploy -o jsonpath="$template")
set -l daemonsets (__fish_kubectl $args get ds -o jsonpath="$template")
set -l sts (__fish_kubectl $args get sts -o jsonpath="$template")
for i in $deploys
echo "deploy/$i"
echo "deployment/$i"
echo "deployments/$i"
end
for i in $daemonsets
echo "daemonset/$i"
echo "daemonsets/$i"
echo "ds/$i"
end
for i in $sts
echo "statefulset/$i"
echo "statefulsets/$i"
echo "sts/$i"
end
end
complete -c kubectl -f -n '__fish_kubectl_needs_command' -a '(__fish_kubectl_get_commands)'
for subcmd in $__fish_kubectl_subresource_commands
complete -c kubectl -f -n "__fish_kubectl_using_command $subcmd; and not __fish_seen_subcommand_from (__fish_kubectl_print_resource_types)" -a '(__fish_kubectl_print_resource_types)' -d 'Resource'
complete -c kubectl -f -n "__fish_kubectl_using_command $subcmd; and __fish_kubectl_has_partial_resource_match" -a '(__fish_kubectl_print_matching_resources)' -d 'Resource'
for resource in $__fish_kubectl_resources
complete -c kubectl -f -n "__fish_kubectl_using_command $subcmd; and __fish_seen_subcommand_from $resource" -a "(__fish_kubectl_print_resource $resource)" -d "$resource"
end
complete -c kubectl -f -n "__fish_kubectl_using_command $subcmd; and __fish_seen_subcommand_from (__fish_kubectl_get_crds)" -a '(__fish_kubectl_print_current_resources)' -d 'CRD'
end
complete -c kubectl -f -n "__fish_seen_subcommand_from log logs exec port-forward" -a '(__fish_kubectl_print_resource pods)' -d 'Pod'
complete -c kubectl -f -n "__fish_seen_subcommand_from top; and __fish_seen_subcommand_from po pod pods" -a '(__fish_kubectl_print_resource pods)' -d 'Pod'
complete -c kubectl -f -n "__fish_seen_subcommand_from top; and __fish_seen_subcommand_from no node nodes" -a '(__fish_kubectl_print_resource nodes)' -d 'Node'
for subcmd in cordon uncordon drain taint
complete -c kubectl -f -n "__fish_seen_subcommand_from $subcmd" -a '(__fish_kubectl_print_resource nodes)' -d 'Node'
end
set -l __fish_kubectl_config_complete_contexts \
delete-context \
get-contexts \
rename-contexts \
set-context \
use-context
set -l __fish_kubectl_config_complete_clusters \
delete-cluster \
get-clusters \
set-cluster
complete -c kubectl -f -n "__fish_seen_subcommand_from config; and __fish_seen_subcommand_from $__fish_kubectl_config_complete_contexts" -a '(__fish_kubectl_get_config contexts)' -d 'Context'
complete -c kubectl -f -n "__fish_seen_subcommand_from config; and __fish_seen_subcommand_from $__fish_kubectl_config_complete_clusters" -a '(__fish_kubectl_get_config clusters)' -d 'Cluster'
complete -c kubectl -f -n "__fish_seen_subcommand_from rollout; and __fish_seen_subcommand_from (__fish_kubectl_get_rollout_commands_without_descriptions)" -a '(__fish_kubectl_get_rollout_resources)'
complete -c kubectl -f -l alsologtostderr -d 'log to standard error as well as files'
complete -c kubectl -f -r -l as -d 'Username to impersonate for the operation'
complete -c kubectl -f -r -l as-group -d 'Group to impersonate for the operation, this flag can be repeated to specify multiple groups.'
complete -c kubectl -r -l cache-dir -d 'Default HTTP cache directory'
complete -c kubectl -r -l certificate-authority -d 'Path to a cert file for the certificate authority'
complete -c kubectl -r -l client-certificate -d 'Path to a client certificate file for TLS'
complete -c kubectl -r -l client-key -d 'Path to a client key file for TLS'
complete -c kubectl -f -r -l cluster -d 'The name of the kubeconfig cluster to use' -a '(__fish_kubectl_get_config clusters)'
complete -c kubectl -f -r -l context -d 'The name of the kubeconfig context to use' -a '(__fish_kubectl_get_config contexts)'
complete -c kubectl -f -l insecure-skip-tls-verify -d 'If true, the server\'s certificate will not be checked for validity. This will make your HTTPS connections insecure'
complete -c kubectl -r -l kubeconfig -d 'Path to the kubeconfig file to use for CLI requests.'
complete -c kubectl -f -r -l log-backtrace-at -d 'when logging hits line file:N, emit a stack trace'
complete -c kubectl -r -l log-dir -d 'If non-empty, write log files in this directory'
complete -c kubectl -f -l logtostderr -d 'log to standard error instead of files'
complete -c kubectl -f -l match-server-version -d 'Require server version to match client version'
complete -c kubectl -f -r -s n -l namespace -d 'If present, the namespace scope for this CLI request' -a '(__fish_kubectl_print_resource namespace)'
complete -c kubectl -f -r -l request-timeout -d 'The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don\'t timeout requests.'
complete -c kubectl -f -r -s s -l server -d 'The address and port of the Kubernetes API server'
complete -c kubectl -f -r -l stderrthreshold -d 'logs at or above this threshold go to stderr'
complete -c kubectl -f -r -l token -d 'Bearer token for authentication to the API server'
complete -c kubectl -f -r -l user -d 'The name of the kubeconfig user to use' -a '(__fish_kubectl_get_config users)'
complete -c kubectl -f -r -s v -l v -d 'log level for V logs'
complete -c kubectl -f -r -l vmodule -d 'comma-separated list of pattern=N settings for file-filtered logging'
# Completions for the "kubectl alpha" command
function __fish_kubectl_get_alpha_commands
echo diff\t'Diff different versions of configurations'
end
function __fish_kubectl_get_alpha_commands_without_descriptions
__fish_kubectl_get_alpha_commands | string replace -r '\t.*$' ''
end
complete -c kubectl -f -n "__fish_kubectl_using_command alpha; and not __fish_seen_subcommand_from (__fish_kubectl_get_alpha_commands_without_descriptions)" -a '(__fish_kubectl_get_alpha_commands)'
# Completions for the "kubectl alpha diff" command
complete -c kubectl -n '__fish_seen_subcommand_from alpha; and __fish_seen_subcommand_from diff' -r -s f -l filename -d 'Filename, directory, or URL to files contains the configuration to diff'
complete -c kubectl -f -n '__fish_seen_subcommand_from alpha; and __fish_seen_subcommand_from diff' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.'
# Completions for the "kubectl annotate" command
complete -c kubectl -f -n '__fish_seen_subcommand_from annotate' -l all -d 'Select all resources, including uninitialized ones, in the namespace of the specified resource types.'
complete -c kubectl -f -n '__fish_seen_subcommand_from annotate' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from annotate' -l dry-run -d 'If true, only print the object that would be sent, without sending it.'
complete -c kubectl -f -n '__fish_seen_subcommand_from annotate' -r -l field-selector -d 'Selector (field query) to filter on, supports \'=\', \'==\', and \'!=\'.(e.g. --field-selector key1=value1,key2=value2). The server only supports a limited number of field queries per type.'
complete -c kubectl -n '__fish_seen_subcommand_from annotate' -r -s f -l filename -d 'Filename, directory, or URL to files identifying the resource to update the annotation'
complete -c kubectl -f -n '__fish_seen_subcommand_from annotate' -l include-uninitialized -d 'If true, the kubectl command applies to uninitialized objects. If explicitly set to false, this flag overrides other flags that make the kubectl commands apply to uninitialized objects, e.g., "--all". Objects with empty metadata.initializers are regarded as initialized.'
complete -c kubectl -f -n '__fish_seen_subcommand_from annotate' -l local -d 'If true, annotation will NOT contact api-server but run locally.'
complete -c kubectl -f -n '__fish_seen_subcommand_from annotate' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template-file|templatefile|template|go-template|jsonpath-file|jsonpath.'
complete -c kubectl -f -n '__fish_seen_subcommand_from annotate' -l overwrite -d 'If true, allow annotations to be overwritten, otherwise reject annotation updates that overwrite existing annotations.'
complete -c kubectl -f -n '__fish_seen_subcommand_from annotate' -l record -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from annotate' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.'
complete -c kubectl -f -n '__fish_seen_subcommand_from annotate' -r -l resource-version -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from annotate' -r -s l -l selector -d 'Selector (label query) to filter on, not including uninitialized ones, supports \'=\', \'==\', and \'!=\'.(e.g. -l key1=value1,key2=value2).'
complete -c kubectl -n '__fish_seen_subcommand_from annotate' -r -l template -d '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].'
# Completions for the "kubectl api-resources" command
complete -c kubectl -f -n '__fish_seen_subcommand_from api-resources' -r -l api-group -d 'Limit to resources in the specified API group.'
complete -c kubectl -f -n '__fish_seen_subcommand_from api-resources' -l cached -d 'Use the cached list of resources if available.'
complete -c kubectl -f -n '__fish_seen_subcommand_from api-resources' -l namespaced -d 'If false, non-namespaced resources will be returned, otherwise returning namespaced resources by default.'
complete -c kubectl -f -n '__fish_seen_subcommand_from api-resources' -l no-headers -d 'When using the default or custom-column output format, don\'t print headers (default print headers).'
complete -c kubectl -f -n '__fish_seen_subcommand_from api-resources' -r -s o -l output -d 'Output format. One of: wide|name.'
complete -c kubectl -f -n '__fish_seen_subcommand_from api-resources' -r -l verbs -d 'Limit to resources that support the specified verbs.'
# Completions for the "kubectl apply" command
complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -l all -d 'Select all resources in the namespace of the specified resource types.'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -l cascade -d 'If true, cascade the deletion of the resources managed by this resource (e.g. Pods created by a ReplicationController). Default true.'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -l dry-run -d 'If true, only print the object that would be sent, without sending it.'
complete -c kubectl -n '__fish_seen_subcommand_from apply' -r -s f -l filename -d 'that contains the configuration to apply'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -l force -d 'Only used when grace-period=0. If true, immediately remove resources from API and bypass graceful deletion. Note that immediate deletion of some resources may result in inconsistency or data loss and requires confirmation.'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -r -l grace-period -d 'Period of time in seconds given to the resource to terminate gracefully. Ignored if negative. Set to 1 for immediate shutdown. Can only be set to 0 when --force is true (force deletion).'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -l include-uninitialized -d 'If true, the kubectl command applies to uninitialized objects. If explicitly set to false, this flag overrides other flags that make the kubectl commands apply to uninitialized objects, e.g., "--all". Objects with empty metadata.initializers are regarded as initialized.'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -l openapi-patch -d 'If true, use openapi to calculate diff when the openapi presents and the resource can be found in the openapi spec. Otherwise, fall back to use baked-in types.'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|templatefile|template|jsonpath-file|jsonpath.'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -l overwrite -d 'Automatically resolve conflicts between the modified and live configuration by using values from the modified configuration'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -l prune -d 'Automatically delete resource objects, including the uninitialized ones, that do not appear in the configs and are created by either apply or create --save-config. Should be used with either -l or --all.'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -r -l prune-whitelist -d 'Overwrite the default whitelist with <group/version/kind> for --prune'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -l record -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -r -s l -l selector -d 'Selector (label query) to filter on, supports \'=\', \'==\', and \'!=\'.(e.g. -l key1=value1,key2=value2)'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -l server-dry-run -d 'If true, request will be sent to server with dry-run flag, which means the modifications won\'t be persisted. This is an alpha feature and flag.'
complete -c kubectl -n '__fish_seen_subcommand_from apply' -r -l template -d '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].'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -r -l timeout -d 'The length of time to wait before giving up on a delete, zero means determine a timeout from the size of the object'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -l validate -d 'If true, use a schema to validate the input before sending it'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -l wait -d 'If true, wait for resources to be gone before returning. This waits for finalizers.'
function __fish_kubectl_get_apply_commands
echo edit-last-applied\t'Edit latest last-applied-configuration annotations of a resource/object'
echo set-last-applied\t'Set the last-applied-configuration annotation on a live object to match the contents of a file.'
echo view-last-applied\t'View latest last-applied-configuration annotations of a resource/object'
end
function __fish_kubectl_get_apply_commands_without_descriptions
__fish_kubectl_get_apply_commands | string replace -r '\t.*$' ''
end
complete -c kubectl -f -n "__fish_kubectl_using_command apply; and not __fish_seen_subcommand_from (__fish_kubectl_get_apply_commands_without_descriptions)" -a '(__fish_kubectl_get_apply_commands)'
# Completions for the "kubectl apply edit-last-applied" command
complete -c kubectl -f -n '__fish_seen_subcommand_from apply; and __fish_seen_subcommand_from edit-last-applied' -l allow-missing-template-keys -d '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.'
complete -c kubectl -n '__fish_seen_subcommand_from apply; and __fish_seen_subcommand_from edit-last-applied' -r -s f -l filename -d 'Filename, directory, or URL to files to use to edit the resource'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply; and __fish_seen_subcommand_from edit-last-applied' -l include-uninitialized -d 'If true, the kubectl command applies to uninitialized objects. If explicitly set to false, this flag overrides other flags that make the kubectl commands apply to uninitialized objects, e.g., "--all". Objects with empty metadata.initializers are regarded as initialized.'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply; and __fish_seen_subcommand_from edit-last-applied' -r -s o -l output -d 'Output format. One of: json|yaml|name|template|go-template|go-template-file|templatefile|jsonpath-file|jsonpath.'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply; and __fish_seen_subcommand_from edit-last-applied' -l record -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply; and __fish_seen_subcommand_from edit-last-applied' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.'
complete -c kubectl -n '__fish_seen_subcommand_from apply; and __fish_seen_subcommand_from edit-last-applied' -r -l template -d '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].'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply; and __fish_seen_subcommand_from edit-last-applied' -l windows-line-endings -d 'Defaults to the line ending native to your platform.'
# Completions for the "kubectl apply set-last-applied" command
complete -c kubectl -f -n '__fish_seen_subcommand_from apply; and __fish_seen_subcommand_from set-last-applied' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply; and __fish_seen_subcommand_from set-last-applied' -l create-annotation -d 'Will create \'last-applied-configuration\' annotations if current objects doesn\'t have one'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply; and __fish_seen_subcommand_from set-last-applied' -l dry-run -d 'If true, only print the object that would be sent, without sending it.'
complete -c kubectl -n '__fish_seen_subcommand_from apply; and __fish_seen_subcommand_from set-last-applied' -r -s f -l filename -d 'Filename, directory, or URL to files that contains the last-applied-configuration annotations'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply; and __fish_seen_subcommand_from set-last-applied' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template-file|templatefile|template|go-template|jsonpath|jsonpath-file.'
complete -c kubectl -n '__fish_seen_subcommand_from apply; and __fish_seen_subcommand_from set-last-applied' -r -l template -d '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].'
# Completions for the "kubectl apply view-last-applied" command
complete -c kubectl -f -n '__fish_seen_subcommand_from apply; and __fish_seen_subcommand_from view-last-applied' -l all -d 'Select all resources in the namespace of the specified resource types'
complete -c kubectl -n '__fish_seen_subcommand_from apply; and __fish_seen_subcommand_from view-last-applied' -r -s f -l filename -d 'Filename, directory, or URL to files that contains the last-applied-configuration annotations'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply; and __fish_seen_subcommand_from view-last-applied' -r -s o -l output -d 'Output format. Must be one of yaml|json'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply; and __fish_seen_subcommand_from view-last-applied' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.'
complete -c kubectl -f -n '__fish_seen_subcommand_from apply; and __fish_seen_subcommand_from view-last-applied' -r -s l -l selector -d 'Selector (label query) to filter on, supports \'=\', \'==\', and \'!=\'.(e.g. -l key1=value1,key2=value2)'
# Completions for the "kubectl attach" command
complete -c kubectl -f -n '__fish_seen_subcommand_from attach' -r -s c -l container -d 'Container name. If omitted, the first container in the pod will be chosen'
complete -c kubectl -f -n '__fish_seen_subcommand_from attach' -r -l pod-running-timeout -d 'The length of time (like 5s, 2m, or 3h, higher than zero) to wait until at least one pod is running'
complete -c kubectl -f -n '__fish_seen_subcommand_from attach' -s i -l stdin -d 'Pass stdin to the container'
complete -c kubectl -f -n '__fish_seen_subcommand_from attach' -s t -l tty -d 'Stdin is a TTY'
# Completions for the "kubectl auth" command
function __fish_kubectl_get_auth_commands
echo can-i\t'Check whether an action is allowed'
echo reconcile\t'Reconciles rules for RBAC Role, RoleBinding, ClusterRole, and ClusterRole binding objects'
end
function __fish_kubectl_get_auth_commands_without_descriptions
__fish_kubectl_get_auth_commands | string replace -r '\t.*$' ''
end
complete -c kubectl -f -n "__fish_kubectl_using_command auth; and not __fish_seen_subcommand_from (__fish_kubectl_get_auth_commands_without_descriptions)" -a '(__fish_kubectl_get_auth_commands)'
# Completions for the "kubectl auth can-i" command
complete -c kubectl -f -n '__fish_seen_subcommand_from auth; and __fish_seen_subcommand_from can-i' -l all-namespaces -d 'If true, check the specified action in all namespaces.'
complete -c kubectl -f -n '__fish_seen_subcommand_from auth; and __fish_seen_subcommand_from can-i' -s q -l quiet -d 'If true, suppress output and just return the exit code.'
complete -c kubectl -f -n '__fish_seen_subcommand_from auth; and __fish_seen_subcommand_from can-i' -r -l subresource -d 'SubResource such as pod/log or deployment/scale'
# Completions for the "kubectl auth reconcile" command
complete -c kubectl -f -n '__fish_seen_subcommand_from auth; and __fish_seen_subcommand_from reconcile' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from auth; and __fish_seen_subcommand_from reconcile' -l dry-run -d 'If true, display results but do not submit changes'
complete -c kubectl -n '__fish_seen_subcommand_from auth; and __fish_seen_subcommand_from reconcile' -r -s f -l filename -d 'Filename, directory, or URL to files identifying the resource to reconcile.'
complete -c kubectl -f -n '__fish_seen_subcommand_from auth; and __fish_seen_subcommand_from reconcile' -r -s o -l output -d 'Output format. One of: json|yaml|name|template|go-template|go-template-file|templatefile|jsonpath|jsonpath-file.'
complete -c kubectl -f -n '__fish_seen_subcommand_from auth; and __fish_seen_subcommand_from reconcile' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.'
complete -c kubectl -f -n '__fish_seen_subcommand_from auth; and __fish_seen_subcommand_from reconcile' -l remove-extra-permissions -d 'If true, removes extra permissions added to roles'
complete -c kubectl -f -n '__fish_seen_subcommand_from auth; and __fish_seen_subcommand_from reconcile' -l remove-extra-subjects -d 'If true, removes extra subjects added to rolebindings'
complete -c kubectl -n '__fish_seen_subcommand_from auth; and __fish_seen_subcommand_from reconcile' -r -l template -d '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].'
# Completions for the "kubectl autoscale" command
complete -c kubectl -f -n '__fish_seen_subcommand_from autoscale' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from autoscale' -r -l cpu-percent -d 'The target average CPU utilization (represented as a percent of requested CPU) over all the pods. If it\'s not specified or negative, a default autoscaling policy will be used.'
complete -c kubectl -f -n '__fish_seen_subcommand_from autoscale' -l dry-run -d 'If true, only print the object that would be sent, without sending it.'
complete -c kubectl -n '__fish_seen_subcommand_from autoscale' -r -s f -l filename -d 'Filename, directory, or URL to files identifying the resource to autoscale.'
complete -c kubectl -f -n '__fish_seen_subcommand_from autoscale' -r -l generator -d 'The name of the API generator to use. Currently there is only 1 generator.'
complete -c kubectl -f -n '__fish_seen_subcommand_from autoscale' -r -l max -d 'The upper limit for the number of pods that can be set by the autoscaler. Required.'
complete -c kubectl -f -n '__fish_seen_subcommand_from autoscale' -r -l min -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from autoscale' -r -l name -d 'The name for the newly created object. If not specified, the name of the input resource will be used.'
complete -c kubectl -f -n '__fish_seen_subcommand_from autoscale' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template-file|templatefile|template|go-template|jsonpath|jsonpath-file.'
complete -c kubectl -f -n '__fish_seen_subcommand_from autoscale' -l record -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from autoscale' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.'
complete -c kubectl -f -n '__fish_seen_subcommand_from autoscale' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.'
complete -c kubectl -n '__fish_seen_subcommand_from autoscale' -r -l template -d '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].'
# Completions for the "kubectl certificate" command
function __fish_kubectl_get_certificate_commands
echo approve\t'Approve a certificate signing request'
echo deny\t'Deny a certificate signing request'
end
function __fish_kubectl_get_certificate_commands_without_descriptions
__fish_kubectl_get_certificate_commands | string replace -r '\t.*$' ''
end
complete -c kubectl -f -n "__fish_kubectl_using_command certificate; and not __fish_seen_subcommand_from (__fish_kubectl_get_certificate_commands_without_descriptions)" -a '(__fish_kubectl_get_certificate_commands)'
# Completions for the "kubectl certificate approve" command
complete -c kubectl -f -n '__fish_seen_subcommand_from certificate; and __fish_seen_subcommand_from approve' -l allow-missing-template-keys -d '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.'
complete -c kubectl -n '__fish_seen_subcommand_from certificate; and __fish_seen_subcommand_from approve' -r -s f -l filename -d 'Filename, directory, or URL to files identifying the resource to update'
complete -c kubectl -f -n '__fish_seen_subcommand_from certificate; and __fish_seen_subcommand_from approve' -l force -d 'Update the CSR even if it is already approved.'
complete -c kubectl -f -n '__fish_seen_subcommand_from certificate; and __fish_seen_subcommand_from approve' -r -s o -l output -d 'Output format. One of: json|yaml|name|template|go-template|go-template-file|templatefile|jsonpath|jsonpath-file.'
complete -c kubectl -f -n '__fish_seen_subcommand_from certificate; and __fish_seen_subcommand_from approve' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.'
complete -c kubectl -n '__fish_seen_subcommand_from certificate; and __fish_seen_subcommand_from approve' -r -l template -d '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].'
# Completions for the "kubectl certificate deny" command
complete -c kubectl -f -n '__fish_seen_subcommand_from certificate; and __fish_seen_subcommand_from deny' -l allow-missing-template-keys -d '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.'
complete -c kubectl -n '__fish_seen_subcommand_from certificate; and __fish_seen_subcommand_from deny' -r -s f -l filename -d 'Filename, directory, or URL to files identifying the resource to update'
complete -c kubectl -f -n '__fish_seen_subcommand_from certificate; and __fish_seen_subcommand_from deny' -l force -d 'Update the CSR even if it is already denied.'
complete -c kubectl -f -n '__fish_seen_subcommand_from certificate; and __fish_seen_subcommand_from deny' -r -s o -l output -d 'Output format. One of: json|yaml|name|template|go-template|go-template-file|templatefile|jsonpath-file|jsonpath.'
complete -c kubectl -f -n '__fish_seen_subcommand_from certificate; and __fish_seen_subcommand_from deny' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.'
complete -c kubectl -n '__fish_seen_subcommand_from certificate; and __fish_seen_subcommand_from deny' -r -l template -d '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].'
# Completions for the "kubectl cluster-info" command
function __fish_kubectl_get_cluster_info_commands
echo dump\t'Dump lots of relevant info for debugging and diagnosis'
end
function __fish_kubectl_get_cluster_info_commands_without_descriptions
__fish_kubectl_get_cluster_info_commands | string replace -r '\t.*$' ''
end
complete -c kubectl -f -n "__fish_kubectl_using_command cluster-info; and not __fish_seen_subcommand_from (__fish_kubectl_get_cluster_info_commands_without_descriptions)" -a '(__fish_kubectl_get_cluster_info_commands)'
# Completions for the "kubectl cluster-info dump" command
complete -c kubectl -f -n '__fish_seen_subcommand_from cluster-info; and __fish_seen_subcommand_from dump' -l all-namespaces -d 'If true, dump all namespaces. If true, --namespaces is ignored.'
complete -c kubectl -f -n '__fish_seen_subcommand_from cluster-info; and __fish_seen_subcommand_from dump' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from cluster-info; and __fish_seen_subcommand_from dump' -r -l namespaces -d 'A comma separated list of namespaces to dump.'
complete -c kubectl -f -n '__fish_seen_subcommand_from cluster-info; and __fish_seen_subcommand_from dump' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template-file|templatefile|template|go-template|jsonpath|jsonpath-file.'
complete -c kubectl -f -n '__fish_seen_subcommand_from cluster-info; and __fish_seen_subcommand_from dump' -r -l output-directory -d 'Where to output the files. If empty or \'-\' uses stdout, otherwise creates a directory hierarchy in that directory'
complete -c kubectl -f -n '__fish_seen_subcommand_from cluster-info; and __fish_seen_subcommand_from dump' -r -l pod-running-timeout -d 'The length of time (like 5s, 2m, or 3h, higher than zero) to wait until at least one pod is running'
complete -c kubectl -n '__fish_seen_subcommand_from cluster-info; and __fish_seen_subcommand_from dump' -r -l template -d '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].'
# Completions for the "kubectl config" command
function __fish_kubectl_get_config_commands
echo current-context\t'Displays the current-context'
echo delete-cluster\t'Delete the specified cluster from the kubeconfig'
echo delete-context\t'Delete the specified context from the kubeconfig'
echo get-clusters\t'Display clusters defined in the kubeconfig'
echo get-contexts\t'Describe one or many contexts'
echo rename-context\t'Renames a context from the kubeconfig file.'
echo set\t'Sets an individual value in a kubeconfig file'
echo set-cluster\t'Sets a cluster entry in kubeconfig'
echo set-context\t'Sets a context entry in kubeconfig'
echo set-credentials\t'Sets a user entry in kubeconfig'
echo unset\t'Unsets an individual value in a kubeconfig file'
echo use-context\t'Sets the current-context in a kubeconfig file'
echo use\t'Sets the current-context in a kubeconfig file'
echo view\t'Display merged kubeconfig settings or a specified kubeconfig file'
end
function __fish_kubectl_get_config_commands_without_descriptions
__fish_kubectl_get_config_commands | string replace -r '\t.*$' ''
end
complete -c kubectl -f -n "__fish_kubectl_using_command config; and not __fish_seen_subcommand_from (__fish_kubectl_get_config_commands_without_descriptions)" -a '(__fish_kubectl_get_config_commands)'
# Completions for the "kubectl config get-contexts" command
complete -c kubectl -f -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from get-contexts' -l no-headers -d 'When using the default or custom-column output format, don\'t print headers (default print headers).'
complete -c kubectl -f -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from get-contexts' -r -s o -l output -d 'Output format. One of: name'
# Completions for the "kubectl config set" command
complete -c kubectl -f -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from set' -r -l set-raw-bytes -d 'When writing a []byte PROPERTY_VALUE, write the given string directly without base64 decoding.'
# Completions for the "kubectl config set-cluster" command
complete -c kubectl -f -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from set-cluster' -r -l embed-certs -d 'embed-certs for the cluster entry in kubeconfig'
# Completions for the "kubectl config set-context" command
complete -c kubectl -f -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from set-context' -l current -d 'Modify the current context'
# Completions for the "kubectl config set-credentials" command
complete -c kubectl -f -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from set-credentials' -r -l auth-provider -d 'Auth provider for the user entry in kubeconfig'
complete -c kubectl -f -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from set-credentials' -r -l auth-provider-arg -d '\'key=value\' arguments for the auth provider'
complete -c kubectl -f -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from set-credentials' -r -l embed-certs -d 'Embed client cert/key for the user entry in kubeconfig'
complete -c kubectl -f -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from set-credentials' -r -l password -d 'password for the user entry in kubeconfig'
complete -c kubectl -f -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from set-credentials' -r -l username -d 'username for the user entry in kubeconfig'
# Completions for the "kubectl config view" command
complete -c kubectl -f -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from view' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from view' -l flatten -d 'Flatten the resulting kubeconfig file into self-contained output (useful for creating portable kubeconfig files)'
complete -c kubectl -f -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from view' -r -l merge -d 'Merge the full hierarchy of kubeconfig files'
complete -c kubectl -f -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from view' -l minify -d 'Remove all information not used by current-context from the output'
complete -c kubectl -f -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from view' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template-file|templatefile|template|go-template|jsonpath|jsonpath-file.'
complete -c kubectl -f -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from view' -l raw -d 'Display raw byte data'
complete -c kubectl -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from view' -r -l template -d '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].'
# Completions for the "kubectl convert" command
complete -c kubectl -f -n '__fish_seen_subcommand_from convert' -l allow-missing-template-keys -d '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.'
complete -c kubectl -n '__fish_seen_subcommand_from convert' -r -s f -l filename -d 'Filename, directory, or URL to files to need to get converted.'
complete -c kubectl -f -n '__fish_seen_subcommand_from convert' -l local -d 'If true, convert will NOT try to contact api-server but run locally.'
complete -c kubectl -f -n '__fish_seen_subcommand_from convert' -r -s o -l output -d 'Output format. One of: json|yaml|name|template|go-template|go-template-file|templatefile|jsonpath|jsonpath-file.'
complete -c kubectl -f -n '__fish_seen_subcommand_from convert' -r -l output-version -d 'Output the formatted object with the given group version (for ex: \'extensions/v1beta1\').'
complete -c kubectl -f -n '__fish_seen_subcommand_from convert' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.'
complete -c kubectl -n '__fish_seen_subcommand_from convert' -r -l template -d '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].'
complete -c kubectl -f -n '__fish_seen_subcommand_from convert' -l validate -d 'If true, use a schema to validate the input before sending it'
# Completions for the "kubectl cordon" command
complete -c kubectl -f -n '__fish_seen_subcommand_from cordon' -l dry-run -d 'If true, only print the object that would be sent, without sending it.'
complete -c kubectl -f -n '__fish_seen_subcommand_from cordon' -r -s l -l selector -d 'Selector (label query) to filter on'
# Completions for the "kubectl cp" command
complete -c kubectl -f -n '__fish_seen_subcommand_from cp' -r -s c -l container -d 'Container name. If omitted, the first container in the pod will be chosen'
# Completions for the "kubectl create" command
complete -c kubectl -f -n '__fish_seen_subcommand_from create' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create' -l dry-run -d 'If true, only print the object that would be sent, without sending it.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create' -l edit -d 'Edit the API resource before creating'
complete -c kubectl -n '__fish_seen_subcommand_from create' -r -s f -l filename -d 'Filename, directory, or URL to files to use to create the resource'
complete -c kubectl -f -n '__fish_seen_subcommand_from create' -r -s o -l output -d 'Output format. One of: json|yaml|name|templatefile|template|go-template|go-template-file|jsonpath|jsonpath-file.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create' -r -l raw -d 'Raw URI to POST to the server. Uses the transport specified by the kubeconfig file.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create' -l record -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create' -r -s l -l selector -d 'Selector (label query) to filter on, supports \'=\', \'==\', and \'!=\'.(e.g. -l key1=value1,key2=value2)'
complete -c kubectl -n '__fish_seen_subcommand_from create' -r -l template -d '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].'
complete -c kubectl -f -n '__fish_seen_subcommand_from create' -l validate -d 'If true, use a schema to validate the input before sending it'
complete -c kubectl -f -n '__fish_seen_subcommand_from create' -l windows-line-endings -d 'Only relevant if --edit=true. Defaults to the line ending native to your platform.'
function __fish_kubectl_get_create_commands
echo clusterrole\t'Create a ClusterRole.'
echo clusterrolebinding\t'Create a ClusterRoleBinding for a particular ClusterRole'
echo configmap\t'Create a configmap from a local file, directory or literal value'
echo cm\t'Create a configmap from a local file, directory or literal value'
echo deployment\t'Create a deployment with the specified name.'
echo deploy\t'Create a deployment with the specified name.'
echo job\t'Create a job with the specified name.'
echo namespace\t'Create a namespace with the specified name'
echo ns\t'Create a namespace with the specified name'
echo poddisruptionbudget\t'Create a pod disruption budget with the specified name.'
echo pdb\t'Create a pod disruption budget with the specified name.'
echo priorityclass\t'Create a priorityclass with the specified name.'
echo pc\t'Create a priorityclass with the specified name.'
echo quota\t'Create a quota with the specified name.'
echo resourcequota\t'Create a quota with the specified name.'
echo role\t'Create a role with single rule.'
echo rolebinding\t'Create a RoleBinding for a particular Role or ClusterRole'
echo secret\t'Create a secret using specified subcommand'
echo service\t'Create a service using specified subcommand.'
echo svc\t'Create a service using specified subcommand.'
echo serviceaccount\t'Create a service account with the specified name'
echo sa\t'Create a service account with the specified name'
end
function __fish_kubectl_get_create_commands_without_descriptions
__fish_kubectl_get_create_commands | string replace -r '\t.*$' ''
end
complete -c kubectl -f -n "__fish_kubectl_using_command create; and not __fish_seen_subcommand_from (__fish_kubectl_get_create_commands_without_descriptions)" -a '(__fish_kubectl_get_create_commands)'
# Completions for the "kubectl create clusterrole" command
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from clusterrole' -r -l aggregation-rule -d 'An aggregation label selector for combining ClusterRoles.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from clusterrole' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from clusterrole' -l dry-run -d 'If true, only print the object that would be sent, without sending it.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from clusterrole' -r -l non-resource-url -d 'A partial url that user should have access to.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from clusterrole' -r -s o -l output -d 'Output format. One of: json|yaml|name|template|go-template|go-template-file|templatefile|jsonpath|jsonpath-file.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from clusterrole' -r -l resource -d 'Resource that the rule applies to'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from clusterrole' -r -l resource-name -d 'Resource in the white list that the rule applies to, repeat this flag for multiple items'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from clusterrole' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.'
complete -c kubectl -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from clusterrole' -r -l template -d '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].'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from clusterrole' -l validate -d 'If true, use a schema to validate the input before sending it'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from clusterrole' -r -l verb -d 'Verb that applies to the resources contained in the rule'
# Completions for the "kubectl create clusterrolebinding" command
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from clusterrolebinding' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from clusterrolebinding' -r -l clusterrole -d 'ClusterRole this ClusterRoleBinding should reference'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from clusterrolebinding' -l dry-run -d 'If true, only print the object that would be sent, without sending it.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from clusterrolebinding' -r -l generator -d 'The name of the API generator to use.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from clusterrolebinding' -r -l group -d 'Groups to bind to the role'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from clusterrolebinding' -r -s o -l output -d 'Output format. One of: json|yaml|name|template|go-template|go-template-file|templatefile|jsonpath|jsonpath-file.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from clusterrolebinding' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from clusterrolebinding' -r -l serviceaccount -d 'Service accounts to bind to the role, in the format <namespace>:<name>'
complete -c kubectl -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from clusterrolebinding' -r -l template -d '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].'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from clusterrolebinding' -l validate -d 'If true, use a schema to validate the input before sending it'
# Completions for the "kubectl create configmap" command
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from configmap' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from cm' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from configmap' -l append-hash -d 'Append a hash of the configmap to its name.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from cm' -l append-hash -d 'Append a hash of the configmap to its name.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from configmap' -l dry-run -d 'If true, only print the object that would be sent, without sending it.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from cm' -l dry-run -d 'If true, only print the object that would be sent, without sending it.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from configmap' -r -l from-env-file -d 'Specify the path to a file to read lines of key=val pairs to create a configmap (i.e. a Docker .env file).'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from cm' -r -l from-env-file -d 'Specify the path to a file to read lines of key=val pairs to create a configmap (i.e. a Docker .env file).'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from configmap' -r -l from-file -d 'Key file can be specified using its file path, in which case file basename will be used as configmap key, or optionally with a key and file path, in which case the given key will be used. Specifying a directory will iterate each named file in the directory whose basename is a valid configmap key.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from cm' -r -l from-file -d 'Key file can be specified using its file path, in which case file basename will be used as configmap key, or optionally with a key and file path, in which case the given key will be used. Specifying a directory will iterate each named file in the directory whose basename is a valid configmap key.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from configmap' -r -l from-literal -d 'Specify a key and literal value to insert in configmap (i.e. mykey=somevalue)'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from cm' -r -l from-literal -d 'Specify a key and literal value to insert in configmap (i.e. mykey=somevalue)'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from configmap' -r -l generator -d 'The name of the API generator to use.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from cm' -r -l generator -d 'The name of the API generator to use.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from configmap' -r -s o -l output -d 'Output format. One of: json|yaml|name|template|go-template|go-template-file|templatefile|jsonpath|jsonpath-file.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from cm' -r -s o -l output -d 'Output format. One of: json|yaml|name|template|go-template|go-template-file|templatefile|jsonpath|jsonpath-file.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from configmap' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from cm' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.'
complete -c kubectl -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from configmap' -r -l template -d '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].'
complete -c kubectl -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from cm' -r -l template -d '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].'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from configmap' -l validate -d 'If true, use a schema to validate the input before sending it'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from cm' -l validate -d 'If true, use a schema to validate the input before sending it'
# Completions for the "kubectl create deployment" command
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from deployment' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from deploy' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from deployment' -l dry-run -d 'If true, only print the object that would be sent, without sending it.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from deploy' -l dry-run -d 'If true, only print the object that would be sent, without sending it.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from deployment' -r -l generator -d 'The name of the API generator to use.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from deploy' -r -l generator -d 'The name of the API generator to use.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from deployment' -r -l image -d 'Image name to run.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from deploy' -r -l image -d 'Image name to run.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from deployment' -r -s o -l output -d 'Output format. One of: json|yaml|name|template|go-template|go-template-file|templatefile|jsonpath|jsonpath-file.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from deploy' -r -s o -l output -d 'Output format. One of: json|yaml|name|template|go-template|go-template-file|templatefile|jsonpath|jsonpath-file.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from deployment' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from deploy' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.'
complete -c kubectl -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from deployment' -r -l template -d '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].'
complete -c kubectl -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from deploy' -r -l template -d '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].'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from deployment' -l validate -d 'If true, use a schema to validate the input before sending it'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from deploy' -l validate -d 'If true, use a schema to validate the input before sending it'
# Completions for the "kubectl create job" command
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from job' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from job' -l dry-run -d 'If true, only print the object that would be sent, without sending it.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from job' -r -l from -d 'The name of the resource to create a Job from (only cronjob is supported).'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from job' -r -l image -d 'Image name to run.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from job' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template-file|templatefile|template|go-template|jsonpath|jsonpath-file.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from job' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.'
complete -c kubectl -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from job' -r -l template -d '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].'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from job' -l validate -d 'If true, use a schema to validate the input before sending it'
# Completions for the "kubectl create namespace" command
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from namespace' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from ns' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from namespace' -l dry-run -d 'If true, only print the object that would be sent, without sending it.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from ns' -l dry-run -d 'If true, only print the object that would be sent, without sending it.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from namespace' -r -l generator -d 'The name of the API generator to use.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from ns' -r -l generator -d 'The name of the API generator to use.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from namespace' -r -s o -l output -d 'Output format. One of: json|yaml|name|template|go-template|go-template-file|templatefile|jsonpath|jsonpath-file.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from ns' -r -s o -l output -d 'Output format. One of: json|yaml|name|template|go-template|go-template-file|templatefile|jsonpath|jsonpath-file.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from namespace' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from ns' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.'
complete -c kubectl -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from namespace' -r -l template -d '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].'
complete -c kubectl -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from ns' -r -l template -d '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].'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from namespace' -l validate -d 'If true, use a schema to validate the input before sending it'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from ns' -l validate -d 'If true, use a schema to validate the input before sending it'
# Completions for the "kubectl create poddisruptionbudget" command
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from poddisruptionbudget' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from pdb' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from poddisruptionbudget' -l dry-run -d 'If true, only print the object that would be sent, without sending it.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from pdb' -l dry-run -d 'If true, only print the object that would be sent, without sending it.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from poddisruptionbudget' -r -l generator -d 'The name of the API generator to use.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from pdb' -r -l generator -d 'The name of the API generator to use.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from poddisruptionbudget' -r -l max-unavailable -d 'The maximum number or percentage of unavailable pods this budget requires.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from pdb' -r -l max-unavailable -d 'The maximum number or percentage of unavailable pods this budget requires.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from poddisruptionbudget' -r -l min-available -d 'The minimum number or percentage of available pods this budget requires.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from pdb' -r -l min-available -d 'The minimum number or percentage of available pods this budget requires.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from poddisruptionbudget' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|templatefile|template|jsonpath|jsonpath-file.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from pdb' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|templatefile|template|jsonpath|jsonpath-file.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from poddisruptionbudget' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from pdb' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from poddisruptionbudget' -r -l selector -d 'A label selector to use for this budget. Only equality-based selector requirements are supported.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from pdb' -r -l selector -d 'A label selector to use for this budget. Only equality-based selector requirements are supported.'
complete -c kubectl -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from poddisruptionbudget' -r -l template -d '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].'
complete -c kubectl -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from pdb' -r -l template -d '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].'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from poddisruptionbudget' -l validate -d 'If true, use a schema to validate the input before sending it'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from pdb' -l validate -d 'If true, use a schema to validate the input before sending it'
# Completions for the "kubectl create priorityclass" command
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from priorityclass' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from pc' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from priorityclass' -r -l description -d 'description is an arbitrary string that usually provides guidelines on when this priority class should be used.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from pc' -r -l description -d 'description is an arbitrary string that usually provides guidelines on when this priority class should be used.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from priorityclass' -l dry-run -d 'If true, only print the object that would be sent, without sending it.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from pc' -l dry-run -d 'If true, only print the object that would be sent, without sending it.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from priorityclass' -r -l generator -d 'The name of the API generator to use.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from pc' -r -l generator -d 'The name of the API generator to use.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from priorityclass' -l global-default -d 'global-default specifies whether this PriorityClass should be considered as the default priority.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from pc' -l global-default -d 'global-default specifies whether this PriorityClass should be considered as the default priority.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from priorityclass' -r -s o -l output -d 'Output format. One of: json|yaml|name|template|go-template|go-template-file|templatefile|jsonpath|jsonpath-file.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from pc' -r -s o -l output -d 'Output format. One of: json|yaml|name|template|go-template|go-template-file|templatefile|jsonpath|jsonpath-file.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from priorityclass' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from pc' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.'
complete -c kubectl -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from priorityclass' -r -l template -d '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].'
complete -c kubectl -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from pc' -r -l template -d '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].'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from priorityclass' -l validate -d 'If true, use a schema to validate the input before sending it'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from pc' -l validate -d 'If true, use a schema to validate the input before sending it'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from priorityclass' -r -l value -d 'the value of this priority class.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from pc' -r -l value -d 'the value of this priority class.'
# Completions for the "kubectl create quota" command
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from quota' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from resourcequota' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from quota' -l dry-run -d 'If true, only print the object that would be sent, without sending it.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from resourcequota' -l dry-run -d 'If true, only print the object that would be sent, without sending it.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from quota' -r -l generator -d 'The name of the API generator to use.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from resourcequota' -r -l generator -d 'The name of the API generator to use.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from quota' -r -l hard -d 'A comma-delimited set of resource=quantity pairs that define a hard limit.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from resourcequota' -r -l hard -d 'A comma-delimited set of resource=quantity pairs that define a hard limit.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from quota' -r -s o -l output -d 'Output format. One of: json|yaml|name|template|go-template|go-template-file|templatefile|jsonpath|jsonpath-file.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from resourcequota' -r -s o -l output -d 'Output format. One of: json|yaml|name|template|go-template|go-template-file|templatefile|jsonpath|jsonpath-file.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from quota' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from resourcequota' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from quota' -r -l scopes -d 'A comma-delimited set of quota scopes that must all match each object tracked by the quota.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from resourcequota' -r -l scopes -d 'A comma-delimited set of quota scopes that must all match each object tracked by the quota.'
complete -c kubectl -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from quota' -r -l template -d '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].'
complete -c kubectl -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from resourcequota' -r -l template -d '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].'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from quota' -l validate -d 'If true, use a schema to validate the input before sending it'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from resourcequota' -l validate -d 'If true, use a schema to validate the input before sending it'
# Completions for the "kubectl create role" command
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from role' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from role' -l dry-run -d 'If true, only print the object that would be sent, without sending it.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from role' -r -s o -l output -d 'Output format. One of: json|yaml|name|template|go-template|go-template-file|templatefile|jsonpath|jsonpath-file.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from role' -r -l resource -d 'Resource that the rule applies to'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from role' -r -l resource-name -d 'Resource in the white list that the rule applies to, repeat this flag for multiple items'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from role' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.'
complete -c kubectl -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from role' -r -l template -d '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].'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from role' -l validate -d 'If true, use a schema to validate the input before sending it'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from role' -r -l verb -d 'Verb that applies to the resources contained in the rule'
# Completions for the "kubectl create rolebinding" command
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from rolebinding' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from rolebinding' -r -l clusterrole -d 'ClusterRole this RoleBinding should reference'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from rolebinding' -l dry-run -d 'If true, only print the object that would be sent, without sending it.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from rolebinding' -r -l generator -d 'The name of the API generator to use.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from rolebinding' -r -l group -d 'Groups to bind to the role'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from rolebinding' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|templatefile|template|jsonpath-file|jsonpath.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from rolebinding' -r -l role -d 'Role this RoleBinding should reference'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from rolebinding' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from rolebinding' -r -l serviceaccount -d 'Service accounts to bind to the role, in the format <namespace>:<name>'
complete -c kubectl -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from rolebinding' -r -l template -d '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].'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from rolebinding' -l validate -d 'If true, use a schema to validate the input before sending it'
# Completions for the "kubectl create secret" command
function __fish_kubectl_get_create_secret_commands
echo docker-registry\t'Create a secret for use with a Docker registry'
echo generic\t'Create a secret from a local file, directory or literal value'
echo tls\t'Create a TLS secret'
end
function __fish_kubectl_get_create_secret_commands_without_descriptions
__fish_kubectl_get_create_secret_commands | string replace -r '\t.*$' ''
end
complete -c kubectl -f -n "__fish_kubectl_using_command secret; and not __fish_seen_subcommand_from (__fish_kubectl_get_create_secret_commands_without_descriptions)" -a '(__fish_kubectl_get_create_secret_commands)'
# Completions for the "kubectl create secret docker-registry" command
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from docker-registry' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from docker-registry' -l append-hash -d 'Append a hash of the secret to its name.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from docker-registry' -r -l docker-email -d 'Email for Docker registry'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from docker-registry' -r -l docker-password -d 'Password for Docker registry authentication'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from docker-registry' -r -l docker-server -d 'Server location for Docker registry'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from docker-registry' -r -l docker-username -d 'Username for Docker registry authentication'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from docker-registry' -l dry-run -d 'If true, only print the object that would be sent, without sending it.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from docker-registry' -r -l from-file -d 'Key files can be specified using their file path, in which case a default name will be given to them, or optionally with a name and file path, in which case the given name will be used. Specifying a directory will iterate each named file in the directory that is a valid secret key.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from docker-registry' -r -l generator -d 'The name of the API generator to use.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from docker-registry' -r -s o -l output -d 'Output format. One of: json|yaml|name|templatefile|template|go-template|go-template-file|jsonpath|jsonpath-file.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from docker-registry' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.'
complete -c kubectl -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from docker-registry' -r -l template -d '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].'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from docker-registry' -l validate -d 'If true, use a schema to validate the input before sending it'
# Completions for the "kubectl create secret generic" command
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from generic' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from generic' -l append-hash -d 'Append a hash of the secret to its name.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from generic' -l dry-run -d 'If true, only print the object that would be sent, without sending it.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from generic' -r -l from-env-file -d 'Specify the path to a file to read lines of key=val pairs to create a secret (i.e. a Docker .env file).'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from generic' -r -l from-file -d 'Key files can be specified using their file path, in which case a default name will be given to them, or optionally with a name and file path, in which case the given name will be used. Specifying a directory will iterate each named file in the directory that is a valid secret key.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from generic' -r -l from-literal -d 'Specify a key and literal value to insert in secret (i.e. mykey=somevalue)'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from generic' -r -l generator -d 'The name of the API generator to use.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from generic' -r -s o -l output -d 'Output format. One of: json|yaml|name|template|go-template|go-template-file|templatefile|jsonpath|jsonpath-file.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from generic' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.'
complete -c kubectl -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from generic' -r -l template -d '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].'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from generic' -r -l type -d 'The type of secret to create'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from generic' -l validate -d 'If true, use a schema to validate the input before sending it'
# Completions for the "kubectl create secret tls" command
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from tls' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from tls' -l append-hash -d 'Append a hash of the secret to its name.'
complete -c kubectl -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from tls' -r -l cert -d 'Path to PEM encoded public key certificate.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from tls' -l dry-run -d 'If true, only print the object that would be sent, without sending it.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from tls' -r -l generator -d 'The name of the API generator to use.'
complete -c kubectl -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from tls' -r -l key -d 'Path to private key associated with given certificate.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from tls' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|templatefile|template|jsonpath|jsonpath-file.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from tls' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.'
complete -c kubectl -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from tls' -r -l template -d '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].'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from secret; and __fish_seen_subcommand_from tls' -l validate -d 'If true, use a schema to validate the input before sending it'
# Completions for the "kubectl create service" command
function __fish_kubectl_get_create_service_commands
echo clusterip\t'Create a ClusterIP service.'
echo externalname\t'Create an ExternalName service.'
echo loadbalancer\t'Create a LoadBalancer service.'
echo nodeport\t'Create a NodePort service.'
end
function __fish_kubectl_get_create_service_commands_without_descriptions
__fish_kubectl_get_create_service_commands | string replace -r '\t.*$' ''
end
complete -c kubectl -f -n "__fish_kubectl_using_command service; and not __fish_seen_subcommand_from (__fish_kubectl_get_create_service_commands_without_descriptions)" -a '(__fish_kubectl_get_create_service_commands)'
complete -c kubectl -f -n "__fish_kubectl_using_command svc; and not __fish_seen_subcommand_from (__fish_kubectl_get_create_service_commands_without_descriptions)" -a '(__fish_kubectl_get_create_service_commands)'
# Completions for the "kubectl create service clusterip" command
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from service; and __fish_seen_subcommand_from clusterip' -l allow-missing-template-keys -d '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.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from service; and __fish_seen_subcommand_from clusterip' -r -l clusterip -d 'Assign your own ClusterIP or set to \'None\' for a \'headless\' service (no loadbalancing).'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from service; and __fish_seen_subcommand_from clusterip' -l dry-run -d 'If true, only print the object that would be sent, without sending it.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from service; and __fish_seen_subcommand_from clusterip' -r -l generator -d 'The name of the API generator to use.'
complete -c kubectl -f -n '__fish_seen_subcommand_from create; and __fish_seen_subcommand_from service; and __fish_seen_subcommand_from clusterip' -r -s o -l output -d 'Output format. One of: json|yaml|name|templatefile|template|go-template|go-template-file|jsonpath|jsonpath-file.'