kube_cluster 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/release.yml +43 -0
  3. data/.github/workflows/tag-gem-version-bump.yml +47 -0
  4. data/.gitignore +2 -0
  5. data/Gemfile.lock +48 -52
  6. data/bin/console +3 -0
  7. data/bin/dev +4 -0
  8. data/docker-compose.yml +26 -0
  9. data/examples/01-basic-redis-pod/manifest.rb +60 -0
  10. data/examples/database/manifest.rb +238 -0
  11. data/examples/version2/demo.rb +87 -0
  12. data/examples/version2/helpers.rb +18 -0
  13. data/examples/version2/my_app.rb +45 -0
  14. data/examples/version2/postgresql.rb +81 -0
  15. data/examples/version2/ruby_on_rails.rb +31 -0
  16. data/examples/web-app/manifest.rb +215 -0
  17. data/flake.lock +3 -3
  18. data/flake.nix +6 -0
  19. data/kube_cluster.gemspec +3 -1
  20. data/lib/kube/cli/cluster.rb +41 -0
  21. data/lib/kube/cluster/connection.rb +18 -0
  22. data/lib/kube/cluster/instance.rb +21 -0
  23. data/lib/kube/cluster/manifest/middleware/annotations.rb +32 -0
  24. data/lib/kube/cluster/manifest/middleware/hpa_for_deployment.rb +109 -0
  25. data/lib/kube/cluster/manifest/middleware/ingress_for_service.rb +89 -0
  26. data/lib/kube/cluster/manifest/middleware/labels.rb +59 -0
  27. data/lib/kube/cluster/manifest/middleware/namespace.rb +31 -0
  28. data/lib/kube/cluster/manifest/middleware/pod_anti_affinity.rb +61 -0
  29. data/lib/kube/cluster/manifest/middleware/resource_preset.rb +64 -0
  30. data/lib/kube/cluster/manifest/middleware/security_context.rb +84 -0
  31. data/lib/kube/cluster/manifest/middleware/service_for_deployment.rb +69 -0
  32. data/lib/kube/cluster/manifest/middleware.rb +178 -0
  33. data/lib/kube/cluster/manifest/stack.rb +56 -0
  34. data/lib/kube/cluster/manifest.rb +76 -0
  35. data/lib/kube/cluster/resource/dirty_tracking.rb +113 -0
  36. data/lib/kube/cluster/resource/persistence.rb +67 -0
  37. data/lib/kube/cluster/resource.rb +21 -0
  38. data/lib/kube/cluster/version.rb +1 -1
  39. data/lib/kube/cluster.rb +13 -7
  40. data/lib/kube/errors.rb +57 -0
  41. metadata +63 -17
  42. data/Rakefile +0 -11
  43. data/TREE_PLAN.md +0 -513
  44. data/bin/generate-command-schema-v1 +0 -44
  45. data/data/kubectl-command-tree-v1-minimal.json +0 -125
  46. data/data/kubectl-command-tree-v1.json +0 -1469
  47. data/examples/quick-repl/docker-compose.yml +0 -52
  48. data/exe/kube_cluster +0 -6
  49. data/lib/kube/cluster/command_node.rb +0 -89
  50. data/lib/kube/cluster/ctl.rb +0 -33
  51. data/lib/kube/cluster/query_builder.rb +0 -35
  52. data/lib/kube/cluster/resource_selector.rb +0 -19
  53. data/lib/kube/cluster/tree_node.rb +0 -51
@@ -1,1469 +0,0 @@
1
- {
2
- "flags": [],
3
- "subcommands": {
4
- "create": {
5
- "flags": [
6
- "--allow-missing-template-keys=true:",
7
- "--dry-run='none':",
8
- "--edit=false:",
9
- "--field-manager='kubectl-create':",
10
- "-f, --filename=[]:",
11
- "-k, --kustomize='':",
12
- "-o, --output='':",
13
- "--raw='':",
14
- "-R, --recursive=false:",
15
- "--save-config=false:",
16
- "-l, --selector='':",
17
- "--show-managed-fields=false:",
18
- "--template='':",
19
- "--validate='strict':",
20
- "--windows-line-endings=false:"
21
- ],
22
- "subcommands": {
23
- "clusterrole": {
24
- "flags": [
25
- "--aggregation-rule=:",
26
- "--allow-missing-template-keys=true:",
27
- "--dry-run='none':",
28
- "--field-manager='kubectl-create':",
29
- "--non-resource-url=[]:",
30
- "-o, --output='':",
31
- "--resource=[]:",
32
- "--resource-name=[]:",
33
- "--save-config=false:",
34
- "--show-managed-fields=false:",
35
- "--template='':",
36
- "--validate='strict':",
37
- "--verb=[]:"
38
- ],
39
- "subcommands": {}
40
- },
41
- "clusterrolebinding": {
42
- "flags": [
43
- "--allow-missing-template-keys=true:",
44
- "--clusterrole='':",
45
- "--dry-run='none':",
46
- "--field-manager='kubectl-create':",
47
- "--group=[]:",
48
- "-o, --output='':",
49
- "--save-config=false:",
50
- "--serviceaccount=[]:",
51
- "--show-managed-fields=false:",
52
- "--template='':",
53
- "--user=[]:",
54
- "--validate='strict':"
55
- ],
56
- "subcommands": {}
57
- },
58
- "configmap": {
59
- "flags": [
60
- "--allow-missing-template-keys=true:",
61
- "--append-hash=false:",
62
- "--dry-run='none':",
63
- "--field-manager='kubectl-create':",
64
- "--from-env-file=[]:",
65
- "--from-file=[]:",
66
- "--from-literal=[]:",
67
- "-o, --output='':",
68
- "--save-config=false:",
69
- "--show-managed-fields=false:",
70
- "--template='':",
71
- "--validate='strict':"
72
- ],
73
- "subcommands": {}
74
- },
75
- "cronjob": {
76
- "flags": [
77
- "--allow-missing-template-keys=true:",
78
- "--dry-run='none':",
79
- "--field-manager='kubectl-create':",
80
- "--image='':",
81
- "-o, --output='':",
82
- "--restart='':",
83
- "--save-config=false:",
84
- "--schedule='':",
85
- "--show-managed-fields=false:",
86
- "--template='':",
87
- "--validate='strict':"
88
- ],
89
- "subcommands": {}
90
- },
91
- "deployment": {
92
- "flags": [
93
- "--allow-missing-template-keys=true:",
94
- "--dry-run='none':",
95
- "--field-manager='kubectl-create':",
96
- "--image=[]:",
97
- "-o, --output='':",
98
- "--port=-1:",
99
- "-r, --replicas=1:",
100
- "--save-config=false:",
101
- "--show-managed-fields=false:",
102
- "--template='':",
103
- "--validate='strict':"
104
- ],
105
- "subcommands": {}
106
- },
107
- "ingress": {
108
- "flags": [
109
- "--annotation ingress.annotation1=foo \\",
110
- "--annotation ingress.annotation2=bla",
111
- "--rule=\"foo.com/=svc:port\" \\",
112
- "--rule=\"foo.com/admin/=svcadmin:portadmin\"",
113
- "--rule=\"foo.com/path*=svc:8080\" \\",
114
- "--rule=\"bar.com/admin*=svc2:http\"",
115
- "--rule=\"foo.com/=svc:https,tls\" \\",
116
- "--rule=\"foo.com/path/subpath*=othersvc:8080\"",
117
- "--rule=\"foo.com/*=svc:8080,tls=secret1\"",
118
- "--default-backend=defaultsvc:http \\",
119
- "--rule=\"foo.com/*=svc:8080,tls=secret1\"",
120
- "--allow-missing-template-keys=true:",
121
- "--annotation=[]:",
122
- "--class='':",
123
- "--default-backend='':",
124
- "--dry-run='none':",
125
- "--field-manager='kubectl-create':",
126
- "-o, --output='':",
127
- "--rule=[]:",
128
- "--save-config=false:",
129
- "--show-managed-fields=false:",
130
- "--template='':",
131
- "--validate='strict':"
132
- ],
133
- "subcommands": {}
134
- },
135
- "job": {
136
- "flags": [
137
- "--allow-missing-template-keys=true:",
138
- "--dry-run='none':",
139
- "--field-manager='kubectl-create':",
140
- "--from='':",
141
- "--image='':",
142
- "-o, --output='':",
143
- "--save-config=false:",
144
- "--show-managed-fields=false:",
145
- "--template='':",
146
- "--validate='strict':"
147
- ],
148
- "subcommands": {}
149
- },
150
- "namespace": {
151
- "flags": [
152
- "--allow-missing-template-keys=true:",
153
- "--dry-run='none':",
154
- "--field-manager='kubectl-create':",
155
- "-o, --output='':",
156
- "--save-config=false:",
157
- "--show-managed-fields=false:",
158
- "--template='':",
159
- "--validate='strict':"
160
- ],
161
- "subcommands": {}
162
- },
163
- "poddisruptionbudget": {
164
- "flags": [
165
- "--allow-missing-template-keys=true:",
166
- "--dry-run='none':",
167
- "--field-manager='kubectl-create':",
168
- "--max-unavailable='':",
169
- "--min-available='':",
170
- "-o, --output='':",
171
- "--save-config=false:",
172
- "--selector='':",
173
- "--show-managed-fields=false:",
174
- "--template='':",
175
- "--validate='strict':"
176
- ],
177
- "subcommands": {}
178
- },
179
- "priorityclass": {
180
- "flags": [
181
- "--allow-missing-template-keys=true:",
182
- "--description='':",
183
- "--dry-run='none':",
184
- "--field-manager='kubectl-create':",
185
- "--global-default=false:",
186
- "-o, --output='':",
187
- "--preemption-policy='PreemptLowerPriority':",
188
- "--save-config=false:",
189
- "--show-managed-fields=false:",
190
- "--template='':",
191
- "--validate='strict':",
192
- "--value=0:"
193
- ],
194
- "subcommands": {}
195
- },
196
- "quota": {
197
- "flags": [
198
- "--allow-missing-template-keys=true:",
199
- "--dry-run='none':",
200
- "--field-manager='kubectl-create':",
201
- "--hard='':",
202
- "-o, --output='':",
203
- "--save-config=false:",
204
- "--scopes='':",
205
- "--show-managed-fields=false:",
206
- "--template='':",
207
- "--validate='strict':"
208
- ],
209
- "subcommands": {}
210
- },
211
- "role": {
212
- "flags": [
213
- "--allow-missing-template-keys=true:",
214
- "--dry-run='none':",
215
- "--field-manager='kubectl-create':",
216
- "-o, --output='':",
217
- "--resource=[]:",
218
- "--resource-name=[]:",
219
- "--save-config=false:",
220
- "--show-managed-fields=false:",
221
- "--template='':",
222
- "--validate='strict':",
223
- "--verb=[]:"
224
- ],
225
- "subcommands": {}
226
- },
227
- "rolebinding": {
228
- "flags": [
229
- "--allow-missing-template-keys=true:",
230
- "--clusterrole='':",
231
- "--dry-run='none':",
232
- "--field-manager='kubectl-create':",
233
- "--group=[]:",
234
- "-o, --output='':",
235
- "--role='':",
236
- "--save-config=false:",
237
- "--serviceaccount=[]:",
238
- "--show-managed-fields=false:",
239
- "--template='':",
240
- "--user=[]:",
241
- "--validate='strict':"
242
- ],
243
- "subcommands": {}
244
- },
245
- "secret": {
246
- "flags": [],
247
- "subcommands": {
248
- "docker-registry": {
249
- "flags": [
250
- "--allow-missing-template-keys=true:",
251
- "--append-hash=false:",
252
- "--docker-email='':",
253
- "--docker-password='':",
254
- "--docker-server='https://index.docker.io/v1/':",
255
- "--docker-username='':",
256
- "--dry-run='none':",
257
- "--field-manager='kubectl-create':",
258
- "--from-file=[]:",
259
- "-o, --output='':",
260
- "--save-config=false:",
261
- "--show-managed-fields=false:",
262
- "--template='':",
263
- "--validate='strict':"
264
- ],
265
- "subcommands": {}
266
- },
267
- "generic": {
268
- "flags": [
269
- "--allow-missing-template-keys=true:",
270
- "--append-hash=false:",
271
- "--dry-run='none':",
272
- "--field-manager='kubectl-create':",
273
- "--from-env-file=[]:",
274
- "--from-file=[]:",
275
- "--from-literal=[]:",
276
- "-o, --output='':",
277
- "--save-config=false:",
278
- "--show-managed-fields=false:",
279
- "--template='':",
280
- "--type='':",
281
- "--validate='strict':"
282
- ],
283
- "subcommands": {}
284
- },
285
- "tls": {
286
- "flags": [
287
- "--allow-missing-template-keys=true:",
288
- "--append-hash=false:",
289
- "--cert='':",
290
- "--dry-run='none':",
291
- "--field-manager='kubectl-create':",
292
- "--key='':",
293
- "-o, --output='':",
294
- "--save-config=false:",
295
- "--show-managed-fields=false:",
296
- "--template='':",
297
- "--validate='strict':"
298
- ],
299
- "subcommands": {}
300
- }
301
- }
302
- },
303
- "service": {
304
- "flags": [],
305
- "subcommands": {
306
- "clusterip": {
307
- "flags": [
308
- "--allow-missing-template-keys=true:",
309
- "--clusterip='':",
310
- "--dry-run='none':",
311
- "--field-manager='kubectl-create':",
312
- "-o, --output='':",
313
- "--save-config=false:",
314
- "--show-managed-fields=false:",
315
- "--tcp=[]:",
316
- "--template='':",
317
- "--validate='strict':"
318
- ],
319
- "subcommands": {}
320
- },
321
- "externalname": {
322
- "flags": [
323
- "--allow-missing-template-keys=true:",
324
- "--dry-run='none':",
325
- "--external-name='':",
326
- "--field-manager='kubectl-create':",
327
- "-o, --output='':",
328
- "--save-config=false:",
329
- "--show-managed-fields=false:",
330
- "--tcp=[]:",
331
- "--template='':",
332
- "--validate='strict':"
333
- ],
334
- "subcommands": {}
335
- },
336
- "loadbalancer": {
337
- "flags": [
338
- "--allow-missing-template-keys=true:",
339
- "--dry-run='none':",
340
- "--field-manager='kubectl-create':",
341
- "-o, --output='':",
342
- "--save-config=false:",
343
- "--show-managed-fields=false:",
344
- "--tcp=[]:",
345
- "--template='':",
346
- "--validate='strict':"
347
- ],
348
- "subcommands": {}
349
- },
350
- "nodeport": {
351
- "flags": [
352
- "--allow-missing-template-keys=true:",
353
- "--dry-run='none':",
354
- "--field-manager='kubectl-create':",
355
- "--node-port=0:",
356
- "-o, --output='':",
357
- "--save-config=false:",
358
- "--show-managed-fields=false:",
359
- "--tcp=[]:",
360
- "--template='':",
361
- "--validate='strict':"
362
- ],
363
- "subcommands": {}
364
- }
365
- }
366
- },
367
- "serviceaccount": {
368
- "flags": [
369
- "--allow-missing-template-keys=true:",
370
- "--dry-run='none':",
371
- "--field-manager='kubectl-create':",
372
- "-o, --output='':",
373
- "--save-config=false:",
374
- "--show-managed-fields=false:",
375
- "--template='':",
376
- "--validate='strict':"
377
- ],
378
- "subcommands": {}
379
- },
380
- "token": {
381
- "flags": [
382
- "--allow-missing-template-keys=true:",
383
- "--audience=[]:",
384
- "--bound-object-kind='':",
385
- "--bound-object-name='':",
386
- "--bound-object-uid='':",
387
- "--duration=0s:",
388
- "-o, --output='':",
389
- "--show-managed-fields=false:",
390
- "--template='':"
391
- ],
392
- "subcommands": {}
393
- }
394
- }
395
- },
396
- "expose": {
397
- "flags": [
398
- "--allow-missing-template-keys=true:",
399
- "--cluster-ip='':",
400
- "--dry-run='none':",
401
- "--external-ip='':",
402
- "--field-manager='kubectl-expose':",
403
- "-f, --filename=[]:",
404
- "-k, --kustomize='':",
405
- "-l, --labels='':",
406
- "--load-balancer-ip='':",
407
- "--name='':",
408
- "-o, --output='':",
409
- "--override-type='merge':",
410
- "--overrides='':",
411
- "--port='':",
412
- "--protocol='':",
413
- "-R, --recursive=false:",
414
- "--save-config=false:",
415
- "--selector='':",
416
- "--session-affinity='':",
417
- "--show-managed-fields=false:",
418
- "--target-port='':",
419
- "--template='':",
420
- "--type='':"
421
- ],
422
- "subcommands": {}
423
- },
424
- "run": {
425
- "flags": [
426
- "--allow-missing-template-keys=true:",
427
- "--annotations=[]:",
428
- "--attach=false:",
429
- "--cascade='background':",
430
- "--command=false:",
431
- "--dry-run='none':",
432
- "--env=[]:",
433
- "--expose=false:",
434
- "--field-manager='kubectl-run':",
435
- "-f, --filename=[]:",
436
- "--force=false:",
437
- "--grace-period=-1:",
438
- "--image='':",
439
- "--image-pull-policy='':",
440
- "-k, --kustomize='':",
441
- "-l, --labels='':",
442
- "--leave-stdin-open=false:",
443
- "-o, --output='':",
444
- "--override-type='merge':",
445
- "--overrides='':",
446
- "--pod-running-timeout=1m0s:",
447
- "--port='':",
448
- "--privileged=false:",
449
- "-q, --quiet=false:",
450
- "-R, --recursive=false:",
451
- "--restart='Always':",
452
- "--rm=false:",
453
- "--save-config=false:",
454
- "--show-managed-fields=false:",
455
- "-i, --stdin=false:",
456
- "--template='':",
457
- "--timeout=0s:",
458
- "-t, --tty=false:",
459
- "--wait=false:"
460
- ],
461
- "subcommands": {}
462
- },
463
- "set": {
464
- "flags": [],
465
- "subcommands": {
466
- "env": {
467
- "flags": [
468
- "--all=false:",
469
- "--allow-missing-template-keys=true:",
470
- "-c, --containers='*':",
471
- "--dry-run='none':",
472
- "-e, --env=[]:",
473
- "--field-manager='kubectl-set':",
474
- "-f, --filename=[]:",
475
- "--from='':",
476
- "--keys=[]:",
477
- "-k, --kustomize='':",
478
- "--list=false:",
479
- "--local=false:",
480
- "-o, --output='':",
481
- "--overwrite=true:",
482
- "--prefix='':",
483
- "-R, --recursive=false:",
484
- "--resolve=false:",
485
- "-l, --selector='':",
486
- "--show-managed-fields=false:",
487
- "--template='':"
488
- ],
489
- "subcommands": {}
490
- },
491
- "image": {
492
- "flags": [
493
- "--all=false:",
494
- "--allow-missing-template-keys=true:",
495
- "--dry-run='none':",
496
- "--field-manager='kubectl-set':",
497
- "-f, --filename=[]:",
498
- "-k, --kustomize='':",
499
- "--local=false:",
500
- "-o, --output='':",
501
- "-R, --recursive=false:",
502
- "-l, --selector='':",
503
- "--show-managed-fields=false:",
504
- "--template='':"
505
- ],
506
- "subcommands": {}
507
- },
508
- "resources": {
509
- "flags": [
510
- "--all=false:",
511
- "--allow-missing-template-keys=true:",
512
- "-c, --containers='*':",
513
- "--dry-run='none':",
514
- "--field-manager='kubectl-set':",
515
- "-f, --filename=[]:",
516
- "-k, --kustomize='':",
517
- "--limits='':",
518
- "--local=false:",
519
- "-o, --output='':",
520
- "-R, --recursive=false:",
521
- "--requests='':",
522
- "-l, --selector='':",
523
- "--show-managed-fields=false:",
524
- "--template='':"
525
- ],
526
- "subcommands": {}
527
- },
528
- "selector": {
529
- "flags": [
530
- "--all=false:",
531
- "--allow-missing-template-keys=true:",
532
- "--dry-run='none':",
533
- "--field-manager='kubectl-set':",
534
- "-f, --filename=[]:",
535
- "--local=false:",
536
- "-o, --output='':",
537
- "-R, --recursive=true:",
538
- "--resource-version='':",
539
- "--show-managed-fields=false:",
540
- "--template='':"
541
- ],
542
- "subcommands": {}
543
- },
544
- "serviceaccount": {
545
- "flags": [
546
- "--all=false:",
547
- "--allow-missing-template-keys=true:",
548
- "--dry-run='none':",
549
- "--field-manager='kubectl-set':",
550
- "-f, --filename=[]:",
551
- "-k, --kustomize='':",
552
- "--local=false:",
553
- "-o, --output='':",
554
- "-R, --recursive=false:",
555
- "--show-managed-fields=false:",
556
- "--template='':"
557
- ],
558
- "subcommands": {}
559
- },
560
- "subject": {
561
- "flags": [
562
- "--all=false:",
563
- "--allow-missing-template-keys=true:",
564
- "--dry-run='none':",
565
- "--field-manager='kubectl-set':",
566
- "-f, --filename=[]:",
567
- "--group=[]:",
568
- "-k, --kustomize='':",
569
- "--local=false:",
570
- "-o, --output='':",
571
- "-R, --recursive=false:",
572
- "-l, --selector='':",
573
- "--serviceaccount=[]:",
574
- "--show-managed-fields=false:",
575
- "--template='':",
576
- "--user=[]:"
577
- ],
578
- "subcommands": {}
579
- }
580
- }
581
- },
582
- "explain": {
583
- "flags": [
584
- "--api-version='':",
585
- "-o, --output='plaintext':",
586
- "--recursive=false:"
587
- ],
588
- "subcommands": {}
589
- },
590
- "get": {
591
- "flags": [
592
- "-A, --all-namespaces=false:",
593
- "--allow-missing-template-keys=true:",
594
- "--chunk-size=500:",
595
- "--field-selector='':",
596
- "-f, --filename=[]:",
597
- "--ignore-not-found=false:",
598
- "-k, --kustomize='':",
599
- "-L, --label-columns=[]:",
600
- "--no-headers=false:",
601
- "-o, --output='':",
602
- "--output-watch-events=false:",
603
- "--raw='':",
604
- "-R, --recursive=false:",
605
- "-l, --selector='':",
606
- "--server-print=true:",
607
- "--show-kind=false:",
608
- "--show-labels=false:",
609
- "--show-managed-fields=false:",
610
- "--sort-by='':",
611
- "--subresource='':",
612
- "--template='':",
613
- "-w, --watch=false:",
614
- "--watch-only=false:"
615
- ],
616
- "subcommands": {}
617
- },
618
- "edit": {
619
- "flags": [
620
- "--allow-missing-template-keys=true:",
621
- "--field-manager='kubectl-edit':",
622
- "-f, --filename=[]:",
623
- "-k, --kustomize='':",
624
- "-o, --output='':",
625
- "--output-patch=false:",
626
- "-R, --recursive=false:",
627
- "--save-config=false:",
628
- "--show-managed-fields=false:",
629
- "--subresource='':",
630
- "--template='':",
631
- "--validate='strict':",
632
- "--windows-line-endings=false:"
633
- ],
634
- "subcommands": {}
635
- },
636
- "delete": {
637
- "flags": [
638
- "--all=false:",
639
- "-A, --all-namespaces=false:",
640
- "--cascade='background':",
641
- "--dry-run='none':",
642
- "--field-selector='':",
643
- "-f, --filename=[]:",
644
- "--force=false:",
645
- "--grace-period=-1:",
646
- "--ignore-not-found=false:",
647
- "-i, --interactive=false:",
648
- "-k, --kustomize='':",
649
- "--now=false:",
650
- "-o, --output='':",
651
- "--raw='':",
652
- "-R, --recursive=false:",
653
- "-l, --selector='':",
654
- "--timeout=0s:",
655
- "--wait=true:"
656
- ],
657
- "subcommands": {}
658
- },
659
- "rollout": {
660
- "flags": [],
661
- "subcommands": {
662
- "history": {
663
- "flags": [
664
- "--allow-missing-template-keys=true:",
665
- "-f, --filename=[]:",
666
- "-k, --kustomize='':",
667
- "-o, --output='':",
668
- "-R, --recursive=false:",
669
- "--revision=0:",
670
- "-l, --selector='':",
671
- "--show-managed-fields=false:",
672
- "--template='':"
673
- ],
674
- "subcommands": {}
675
- },
676
- "pause": {
677
- "flags": [
678
- "--allow-missing-template-keys=true:",
679
- "--field-manager='kubectl-rollout':",
680
- "-f, --filename=[]:",
681
- "-k, --kustomize='':",
682
- "-o, --output='':",
683
- "-R, --recursive=false:",
684
- "-l, --selector='':",
685
- "--show-managed-fields=false:",
686
- "--template='':"
687
- ],
688
- "subcommands": {}
689
- },
690
- "restart": {
691
- "flags": [
692
- "--allow-missing-template-keys=true:",
693
- "--field-manager='kubectl-rollout':",
694
- "-f, --filename=[]:",
695
- "-k, --kustomize='':",
696
- "-o, --output='':",
697
- "-R, --recursive=false:",
698
- "-l, --selector='':",
699
- "--show-managed-fields=false:",
700
- "--template='':"
701
- ],
702
- "subcommands": {}
703
- },
704
- "resume": {
705
- "flags": [
706
- "--allow-missing-template-keys=true:",
707
- "--field-manager='kubectl-rollout':",
708
- "-f, --filename=[]:",
709
- "-k, --kustomize='':",
710
- "-o, --output='':",
711
- "-R, --recursive=false:",
712
- "-l, --selector='':",
713
- "--show-managed-fields=false:",
714
- "--template='':"
715
- ],
716
- "subcommands": {}
717
- },
718
- "status": {
719
- "flags": [
720
- "-f, --filename=[]:",
721
- "-k, --kustomize='':",
722
- "-R, --recursive=false:",
723
- "--revision=0:",
724
- "-l, --selector='':",
725
- "--timeout=0s:",
726
- "-w, --watch=true:"
727
- ],
728
- "subcommands": {}
729
- },
730
- "undo": {
731
- "flags": [
732
- "--allow-missing-template-keys=true:",
733
- "--dry-run='none':",
734
- "-f, --filename=[]:",
735
- "-k, --kustomize='':",
736
- "-o, --output='':",
737
- "-R, --recursive=false:",
738
- "-l, --selector='':",
739
- "--show-managed-fields=false:",
740
- "--template='':",
741
- "--to-revision=0:"
742
- ],
743
- "subcommands": {}
744
- }
745
- }
746
- },
747
- "scale": {
748
- "flags": [
749
- "--all=false:",
750
- "--allow-missing-template-keys=true:",
751
- "--current-replicas=-1:",
752
- "--dry-run='none':",
753
- "-f, --filename=[]:",
754
- "-k, --kustomize='':",
755
- "-o, --output='':",
756
- "-R, --recursive=false:",
757
- "--replicas=0:",
758
- "--resource-version='':",
759
- "-l, --selector='':",
760
- "--show-managed-fields=false:",
761
- "--template='':",
762
- "--timeout=0s:"
763
- ],
764
- "subcommands": {}
765
- },
766
- "autoscale": {
767
- "flags": [
768
- "--allow-missing-template-keys=true:",
769
- "--cpu='':",
770
- "--dry-run='none':",
771
- "--field-manager='kubectl-autoscale':",
772
- "-f, --filename=[]:",
773
- "-k, --kustomize='':",
774
- "--max=-1:",
775
- "--memory='':",
776
- "--min=-1:",
777
- "--name='':",
778
- "-o, --output='':",
779
- "-R, --recursive=false:",
780
- "--save-config=false:",
781
- "--show-managed-fields=false:",
782
- "--template='':"
783
- ],
784
- "subcommands": {}
785
- },
786
- "certificate": {
787
- "flags": [],
788
- "subcommands": {
789
- "approve": {
790
- "flags": [
791
- "--allow-missing-template-keys=true:",
792
- "-f, --filename=[]:",
793
- "--force=false:",
794
- "-k, --kustomize='':",
795
- "-o, --output='':",
796
- "-R, --recursive=false:",
797
- "--show-managed-fields=false:",
798
- "--template='':"
799
- ],
800
- "subcommands": {}
801
- },
802
- "deny": {
803
- "flags": [
804
- "--allow-missing-template-keys=true:",
805
- "-f, --filename=[]:",
806
- "--force=false:",
807
- "-k, --kustomize='':",
808
- "-o, --output='':",
809
- "-R, --recursive=false:",
810
- "--show-managed-fields=false:",
811
- "--template='':"
812
- ],
813
- "subcommands": {}
814
- }
815
- }
816
- },
817
- "cluster-info": {
818
- "flags": [],
819
- "subcommands": {
820
- "dump": {
821
- "flags": [
822
- "-A, --all-namespaces=false:",
823
- "--allow-missing-template-keys=true:",
824
- "--namespaces=[]:",
825
- "-o, --output='json':",
826
- "--output-directory='':",
827
- "--pod-running-timeout=20s:",
828
- "--show-managed-fields=false:",
829
- "--template='':"
830
- ],
831
- "subcommands": {}
832
- }
833
- }
834
- },
835
- "top": {
836
- "flags": [],
837
- "subcommands": {
838
- "node": {
839
- "flags": [
840
- "--no-headers=false:",
841
- "-l, --selector='':",
842
- "--show-capacity=false:",
843
- "--show-swap=false:",
844
- "--sort-by='':",
845
- "--use-protocol-buffers=true:"
846
- ],
847
- "subcommands": {}
848
- },
849
- "pod": {
850
- "flags": [
851
- "-A, --all-namespaces=false:",
852
- "--containers=false:",
853
- "--field-selector='':",
854
- "--no-headers=false:",
855
- "-l, --selector='':",
856
- "--show-swap=false:",
857
- "--sort-by='':",
858
- "--sum=false:",
859
- "--use-protocol-buffers=true:"
860
- ],
861
- "subcommands": {}
862
- }
863
- }
864
- },
865
- "cordon": {
866
- "flags": [
867
- "--dry-run='none':",
868
- "-l, --selector='':"
869
- ],
870
- "subcommands": {}
871
- },
872
- "uncordon": {
873
- "flags": [
874
- "--dry-run='none':",
875
- "-l, --selector='':"
876
- ],
877
- "subcommands": {}
878
- },
879
- "drain": {
880
- "flags": [
881
- "--chunk-size=500:",
882
- "--delete-emptydir-data=false:",
883
- "--disable-eviction=false:",
884
- "--dry-run='none':",
885
- "--force=false:",
886
- "--grace-period=-1:",
887
- "--ignore-daemonsets=false:",
888
- "--pod-selector='':",
889
- "-l, --selector='':",
890
- "--skip-wait-for-delete-timeout=0:",
891
- "--timeout=0s:"
892
- ],
893
- "subcommands": {}
894
- },
895
- "taint": {
896
- "flags": [
897
- "--all=false:",
898
- "--allow-missing-template-keys=true:",
899
- "--dry-run='none':",
900
- "--field-manager='kubectl-taint':",
901
- "-o, --output='':",
902
- "--overwrite=false:",
903
- "-l, --selector='':",
904
- "--show-managed-fields=false:",
905
- "--template='':",
906
- "--validate='strict':"
907
- ],
908
- "subcommands": {}
909
- },
910
- "describe": {
911
- "flags": [
912
- "-A, --all-namespaces=false:",
913
- "--chunk-size=500:",
914
- "-f, --filename=[]:",
915
- "-k, --kustomize='':",
916
- "-R, --recursive=false:",
917
- "-l, --selector='':",
918
- "--show-events=true:"
919
- ],
920
- "subcommands": {}
921
- },
922
- "logs": {
923
- "flags": [
924
- "--all-containers=false:",
925
- "--all-pods=false:",
926
- "-c, --container='':",
927
- "-f, --follow=false:",
928
- "--ignore-errors=false:",
929
- "--insecure-skip-tls-verify-backend=false:",
930
- "--limit-bytes=0:",
931
- "--max-log-requests=5:",
932
- "--pod-running-timeout=20s:",
933
- "--prefix=false:",
934
- "-p, --previous=false:",
935
- "-l, --selector='':",
936
- "--since=0s:",
937
- "--since-time='':",
938
- "--tail=-1:",
939
- "--timestamps=false:"
940
- ],
941
- "subcommands": {}
942
- },
943
- "attach": {
944
- "flags": [
945
- "-c, --container='':",
946
- "--pod-running-timeout=1m0s:",
947
- "-q, --quiet=false:",
948
- "-i, --stdin=false:",
949
- "-t, --tty=false:"
950
- ],
951
- "subcommands": {}
952
- },
953
- "exec": {
954
- "flags": [
955
- "-c, --container='':",
956
- "-f, --filename=[]:",
957
- "--pod-running-timeout=1m0s:",
958
- "-q, --quiet=false:",
959
- "-i, --stdin=false:",
960
- "-t, --tty=false:"
961
- ],
962
- "subcommands": {}
963
- },
964
- "port-forward": {
965
- "flags": [
966
- "--address=[localhost]:",
967
- "--pod-running-timeout=1m0s:"
968
- ],
969
- "subcommands": {}
970
- },
971
- "proxy": {
972
- "flags": [
973
- "--accept-hosts='^localhost$,^127\\.0\\.0\\.1$,^\\[::1\\]$':",
974
- "--accept-paths='^.*':",
975
- "--address='127.0.0.1':",
976
- "--api-prefix='/':",
977
- "--append-server-path=false:",
978
- "--disable-filter=false:",
979
- "--keepalive=0s:",
980
- "-p, --port=8001:",
981
- "--reject-methods='^$':",
982
- "--reject-paths='^/api/.*/pods/.*/exec,^/api/.*/pods/.*/attach':",
983
- "-u, --unix-socket='':",
984
- "-w, --www='':",
985
- "-P, --www-prefix='/static/':"
986
- ],
987
- "subcommands": {}
988
- },
989
- "cp": {
990
- "flags": [
991
- "-c, --container='':",
992
- "--no-preserve=false:",
993
- "--retries=0:"
994
- ],
995
- "subcommands": {}
996
- },
997
- "auth": {
998
- "flags": [],
999
- "subcommands": {
1000
- "can-i": {
1001
- "flags": [
1002
- "-A, --all-namespaces=false:",
1003
- "--list=false:",
1004
- "--no-headers=false:",
1005
- "-q, --quiet=false:",
1006
- "--subresource='':"
1007
- ],
1008
- "subcommands": {}
1009
- },
1010
- "reconcile": {
1011
- "flags": [
1012
- "--allow-missing-template-keys=true:",
1013
- "--dry-run='none':",
1014
- "-f, --filename=[]:",
1015
- "-k, --kustomize='':",
1016
- "-o, --output='':",
1017
- "-R, --recursive=false:",
1018
- "--remove-extra-permissions=false:",
1019
- "--remove-extra-subjects=false:",
1020
- "--show-managed-fields=false:",
1021
- "--template='':"
1022
- ],
1023
- "subcommands": {}
1024
- },
1025
- "whoami": {
1026
- "flags": [
1027
- "--allow-missing-template-keys=true:",
1028
- "-o, --output='':",
1029
- "--show-managed-fields=false:",
1030
- "--template='':"
1031
- ],
1032
- "subcommands": {}
1033
- }
1034
- }
1035
- },
1036
- "debug": {
1037
- "flags": [
1038
- "--arguments-only=false:",
1039
- "--attach=false:",
1040
- "-c, --container='':",
1041
- "--copy-to='':",
1042
- "--custom='':",
1043
- "--env=[]:",
1044
- "-f, --filename=[]:",
1045
- "--image='':",
1046
- "--image-pull-policy='':",
1047
- "--keep-annotations=false:",
1048
- "--keep-init-containers=true:",
1049
- "--keep-labels=false:",
1050
- "--keep-liveness=false:",
1051
- "--keep-readiness=false:",
1052
- "--keep-startup=false:",
1053
- "--profile='legacy':",
1054
- "-q, --quiet=false:",
1055
- "--replace=false:",
1056
- "--same-node=false:",
1057
- "--set-image=[]:",
1058
- "--share-processes=true:",
1059
- "-i, --stdin=false:",
1060
- "--target='':",
1061
- "-t, --tty=false:"
1062
- ],
1063
- "subcommands": {}
1064
- },
1065
- "events": {
1066
- "flags": [
1067
- "-A, --all-namespaces=false:",
1068
- "--allow-missing-template-keys=true:",
1069
- "--chunk-size=500:",
1070
- "--for='':",
1071
- "--no-headers=false:",
1072
- "-o, --output='':",
1073
- "--show-managed-fields=false:",
1074
- "--template='':",
1075
- "--types=[]:",
1076
- "-w, --watch=false:"
1077
- ],
1078
- "subcommands": {}
1079
- },
1080
- "diff": {
1081
- "flags": [
1082
- "--concurrency=1:",
1083
- "--field-manager='kubectl-client-side-apply':",
1084
- "-f, --filename=[]:",
1085
- "--force-conflicts=false:",
1086
- "-k, --kustomize='':",
1087
- "--prune=false:",
1088
- "--prune-allowlist=[]:",
1089
- "-R, --recursive=false:",
1090
- "-l, --selector='':",
1091
- "--server-side=false:",
1092
- "--show-managed-fields=false:"
1093
- ],
1094
- "subcommands": {}
1095
- },
1096
- "apply": {
1097
- "flags": [
1098
- "--all=false:",
1099
- "--allow-missing-template-keys=true:",
1100
- "--cascade='background':",
1101
- "--dry-run='none':",
1102
- "--field-manager='kubectl-client-side-apply':",
1103
- "-f, --filename=[]:",
1104
- "--force=false:",
1105
- "--force-conflicts=false:",
1106
- "--grace-period=-1:",
1107
- "-k, --kustomize='':",
1108
- "--openapi-patch=true:",
1109
- "-o, --output='':",
1110
- "--overwrite=true:",
1111
- "--prune=false:",
1112
- "--prune-allowlist=[]:",
1113
- "-R, --recursive=false:",
1114
- "-l, --selector='':",
1115
- "--server-side=false:",
1116
- "--show-managed-fields=false:",
1117
- "--subresource='':",
1118
- "--template='':",
1119
- "--timeout=0s:",
1120
- "--validate='strict':",
1121
- "--wait=false:"
1122
- ],
1123
- "subcommands": {
1124
- "edit-last-applied": {
1125
- "flags": [
1126
- "--allow-missing-template-keys=true:",
1127
- "--field-manager='kubectl-client-side-apply':",
1128
- "-f, --filename=[]:",
1129
- "-k, --kustomize='':",
1130
- "-o, --output='':",
1131
- "-R, --recursive=false:",
1132
- "--show-managed-fields=false:",
1133
- "--template='':",
1134
- "--validate='strict':",
1135
- "--windows-line-endings=false:"
1136
- ],
1137
- "subcommands": {}
1138
- },
1139
- "set-last-applied": {
1140
- "flags": [
1141
- "--allow-missing-template-keys=true:",
1142
- "--create-annotation=false:",
1143
- "--dry-run='none':",
1144
- "-f, --filename=[]:",
1145
- "-o, --output='':",
1146
- "--show-managed-fields=false:",
1147
- "--template='':"
1148
- ],
1149
- "subcommands": {}
1150
- },
1151
- "view-last-applied": {
1152
- "flags": [
1153
- "--all=false:",
1154
- "-f, --filename=[]:",
1155
- "-k, --kustomize='':",
1156
- "-o, --output='yaml':",
1157
- "-R, --recursive=false:",
1158
- "-l, --selector='':"
1159
- ],
1160
- "subcommands": {}
1161
- }
1162
- }
1163
- },
1164
- "patch": {
1165
- "flags": [
1166
- "--allow-missing-template-keys=true:",
1167
- "--dry-run='none':",
1168
- "--field-manager='kubectl-patch':",
1169
- "-f, --filename=[]:",
1170
- "-k, --kustomize='':",
1171
- "--local=false:",
1172
- "-o, --output='':",
1173
- "-p, --patch='':",
1174
- "--patch-file='':",
1175
- "-R, --recursive=false:",
1176
- "--show-managed-fields=false:",
1177
- "--subresource='':",
1178
- "--template='':",
1179
- "--type='strategic':"
1180
- ],
1181
- "subcommands": {}
1182
- },
1183
- "replace": {
1184
- "flags": [
1185
- "--allow-missing-template-keys=true:",
1186
- "--cascade='background':",
1187
- "--dry-run='none':",
1188
- "--field-manager='kubectl-replace':",
1189
- "-f, --filename=[]:",
1190
- "--force=false:",
1191
- "--grace-period=-1:",
1192
- "-k, --kustomize='':",
1193
- "-o, --output='':",
1194
- "--raw='':",
1195
- "-R, --recursive=false:",
1196
- "--save-config=false:",
1197
- "--show-managed-fields=false:",
1198
- "--subresource='':",
1199
- "--template='':",
1200
- "--timeout=0s:",
1201
- "--validate='strict':",
1202
- "--wait=false:"
1203
- ],
1204
- "subcommands": {}
1205
- },
1206
- "wait": {
1207
- "flags": [
1208
- "--all=false:",
1209
- "-A, --all-namespaces=false:",
1210
- "--allow-missing-template-keys=true:",
1211
- "--field-selector='':",
1212
- "-f, --filename=[]:",
1213
- "--for='':",
1214
- "--local=false:",
1215
- "-o, --output='':",
1216
- "-R, --recursive=true:",
1217
- "-l, --selector='':",
1218
- "--show-managed-fields=false:",
1219
- "--template='':",
1220
- "--timeout=30s:"
1221
- ],
1222
- "subcommands": {}
1223
- },
1224
- "kustomize": {
1225
- "flags": [
1226
- "--as-current-user=false:",
1227
- "--enable-alpha-plugins=false:",
1228
- "--enable-helm=false:",
1229
- "-e, --env=[]:",
1230
- "--helm-api-versions=[]:",
1231
- "--helm-command='helm':",
1232
- "--helm-debug=false:",
1233
- "--helm-kube-version='':",
1234
- "--load-restrictor='LoadRestrictionsRootOnly':",
1235
- "--mount=[]:",
1236
- "--network=false:",
1237
- "--network-name='bridge':",
1238
- "-o, --output='':"
1239
- ],
1240
- "subcommands": {}
1241
- },
1242
- "label": {
1243
- "flags": [
1244
- "--all=false:",
1245
- "-A, --all-namespaces=false:",
1246
- "--allow-missing-template-keys=true:",
1247
- "--dry-run='none':",
1248
- "--field-manager='kubectl-label':",
1249
- "--field-selector='':",
1250
- "-f, --filename=[]:",
1251
- "-k, --kustomize='':",
1252
- "--list=false:",
1253
- "--local=false:",
1254
- "-o, --output='':",
1255
- "--overwrite=false:",
1256
- "-R, --recursive=false:",
1257
- "--resource-version='':",
1258
- "-l, --selector='':",
1259
- "--show-managed-fields=false:",
1260
- "--template='':"
1261
- ],
1262
- "subcommands": {}
1263
- },
1264
- "annotate": {
1265
- "flags": [
1266
- "--all=false:",
1267
- "-A, --all-namespaces=false:",
1268
- "--allow-missing-template-keys=true:",
1269
- "--dry-run='none':",
1270
- "--field-manager='kubectl-annotate':",
1271
- "--field-selector='':",
1272
- "-f, --filename=[]:",
1273
- "-k, --kustomize='':",
1274
- "--list=false:",
1275
- "--local=false:",
1276
- "-o, --output='':",
1277
- "--overwrite=false:",
1278
- "-R, --recursive=false:",
1279
- "--resource-version='':",
1280
- "-l, --selector='':",
1281
- "--show-managed-fields=false:",
1282
- "--template='':"
1283
- ],
1284
- "subcommands": {}
1285
- },
1286
- "completion": {
1287
- "flags": [],
1288
- "subcommands": {}
1289
- },
1290
- "alpha": {
1291
- "flags": [],
1292
- "subcommands": {
1293
- "kuberc": {
1294
- "flags": [],
1295
- "subcommands": {
1296
- "set": {
1297
- "flags": [
1298
- "--appendarg=[]:",
1299
- "--command='':",
1300
- "--kuberc='':",
1301
- "--name='':",
1302
- "--option=[]:",
1303
- "--overwrite=false:",
1304
- "--prependarg=[]:",
1305
- "--section='':"
1306
- ],
1307
- "subcommands": {}
1308
- },
1309
- "view": {
1310
- "flags": [
1311
- "--allow-missing-template-keys=true:",
1312
- "--kuberc='':",
1313
- "-o, --output='yaml':",
1314
- "--show-managed-fields=false:",
1315
- "--template='':"
1316
- ],
1317
- "subcommands": {}
1318
- }
1319
- }
1320
- }
1321
- }
1322
- },
1323
- "api-resources": {
1324
- "flags": [
1325
- "--api-group='':",
1326
- "--cached=false:",
1327
- "--categories=[]:",
1328
- "--namespaced=true:",
1329
- "--no-headers=false:",
1330
- "-o, --output='':",
1331
- "--show-managed-fields=false:",
1332
- "--sort-by='':",
1333
- "--verbs=[]:"
1334
- ],
1335
- "subcommands": {}
1336
- },
1337
- "api-versions": {
1338
- "flags": [],
1339
- "subcommands": {}
1340
- },
1341
- "config": {
1342
- "flags": [],
1343
- "subcommands": {
1344
- "current-context": {
1345
- "flags": [],
1346
- "subcommands": {}
1347
- },
1348
- "delete-cluster": {
1349
- "flags": [],
1350
- "subcommands": {}
1351
- },
1352
- "delete-context": {
1353
- "flags": [],
1354
- "subcommands": {}
1355
- },
1356
- "delete-user": {
1357
- "flags": [],
1358
- "subcommands": {}
1359
- },
1360
- "get-clusters": {
1361
- "flags": [],
1362
- "subcommands": {}
1363
- },
1364
- "get-contexts": {
1365
- "flags": [
1366
- "--no-headers=false:",
1367
- "-o, --output='':"
1368
- ],
1369
- "subcommands": {}
1370
- },
1371
- "get-users": {
1372
- "flags": [],
1373
- "subcommands": {}
1374
- },
1375
- "rename-context": {
1376
- "flags": [],
1377
- "subcommands": {}
1378
- },
1379
- "set": {
1380
- "flags": [
1381
- "--set-raw-bytes=false:"
1382
- ],
1383
- "subcommands": {}
1384
- },
1385
- "set-cluster": {
1386
- "flags": [
1387
- "--certificate-authority='':",
1388
- "--embed-certs=false:",
1389
- "--insecure-skip-tls-verify=false:",
1390
- "--proxy-url='':",
1391
- "--server='':",
1392
- "--tls-server-name='':"
1393
- ],
1394
- "subcommands": {}
1395
- },
1396
- "set-context": {
1397
- "flags": [
1398
- "--cluster='':",
1399
- "--current=false:",
1400
- "-n, --namespace='':",
1401
- "--user='':"
1402
- ],
1403
- "subcommands": {}
1404
- },
1405
- "set-credentials": {
1406
- "flags": [
1407
- "--client-certificate=certfile --client-key=keyfile",
1408
- "--token=bearer_token",
1409
- "--username=basic_user --password=basic_password",
1410
- "--auth-provider='':",
1411
- "--auth-provider-arg=[]:",
1412
- "--client-certificate='':",
1413
- "--client-key='':",
1414
- "--embed-certs=false:",
1415
- "--exec-api-version='':",
1416
- "--exec-arg=[]:",
1417
- "--exec-command='':",
1418
- "--exec-env=[]:",
1419
- "--exec-interactive-mode='':",
1420
- "--exec-provide-cluster-info=false:",
1421
- "--password='':",
1422
- "--token='':",
1423
- "--username='':"
1424
- ],
1425
- "subcommands": {}
1426
- },
1427
- "unset": {
1428
- "flags": [],
1429
- "subcommands": {}
1430
- },
1431
- "use-context": {
1432
- "flags": [],
1433
- "subcommands": {}
1434
- },
1435
- "view": {
1436
- "flags": [
1437
- "--allow-missing-template-keys=true:",
1438
- "--flatten=false:",
1439
- "--merge=true:",
1440
- "--minify=false:",
1441
- "-o, --output='yaml':",
1442
- "--raw=false:",
1443
- "--show-managed-fields=false:",
1444
- "--template='':"
1445
- ],
1446
- "subcommands": {}
1447
- }
1448
- }
1449
- },
1450
- "plugin": {
1451
- "flags": [],
1452
- "subcommands": {
1453
- "list": {
1454
- "flags": [
1455
- "--name-only=false:"
1456
- ],
1457
- "subcommands": {}
1458
- }
1459
- }
1460
- },
1461
- "version": {
1462
- "flags": [
1463
- "--client=false:",
1464
- "-o, --output='':"
1465
- ],
1466
- "subcommands": {}
1467
- }
1468
- }
1469
- }