This repository has been archived by the owner on Dec 7, 2023. It is now read-only.
/
openapi_generated.go
2954 lines (2863 loc) · 107 KB
/
openapi_generated.go
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
// +build !ignore_autogenerated
// Code generated by openapi-gen. DO NOT EDIT.
// This file was autogenerated by openapi-gen. Do not edit it manually!
package openapi
import (
spec "github.com/go-openapi/spec"
common "k8s.io/kube-openapi/pkg/common"
)
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition {
return map[string]common.OpenAPIDefinition{
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.BlockDeviceVolume": schema_pkg_apis_ignite_v1alpha2_BlockDeviceVolume(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.FileMapping": schema_pkg_apis_ignite_v1alpha2_FileMapping(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.Image": schema_pkg_apis_ignite_v1alpha2_Image(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.ImageSpec": schema_pkg_apis_ignite_v1alpha2_ImageSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.ImageStatus": schema_pkg_apis_ignite_v1alpha2_ImageStatus(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.Kernel": schema_pkg_apis_ignite_v1alpha2_Kernel(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.KernelSpec": schema_pkg_apis_ignite_v1alpha2_KernelSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.KernelStatus": schema_pkg_apis_ignite_v1alpha2_KernelStatus(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.OCIImageSource": schema_pkg_apis_ignite_v1alpha2_OCIImageSource(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.Pool": schema_pkg_apis_ignite_v1alpha2_Pool(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.PoolDevice": schema_pkg_apis_ignite_v1alpha2_PoolDevice(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.PoolSpec": schema_pkg_apis_ignite_v1alpha2_PoolSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.PoolStatus": schema_pkg_apis_ignite_v1alpha2_PoolStatus(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.Runtime": schema_pkg_apis_ignite_v1alpha2_Runtime(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.SSH": schema_pkg_apis_ignite_v1alpha2_SSH(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.VM": schema_pkg_apis_ignite_v1alpha2_VM(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.VMImageSpec": schema_pkg_apis_ignite_v1alpha2_VMImageSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.VMKernelSpec": schema_pkg_apis_ignite_v1alpha2_VMKernelSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.VMNetworkSpec": schema_pkg_apis_ignite_v1alpha2_VMNetworkSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.VMSandboxSpec": schema_pkg_apis_ignite_v1alpha2_VMSandboxSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.VMSpec": schema_pkg_apis_ignite_v1alpha2_VMSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.VMStatus": schema_pkg_apis_ignite_v1alpha2_VMStatus(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.VMStorageSpec": schema_pkg_apis_ignite_v1alpha2_VMStorageSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.Volume": schema_pkg_apis_ignite_v1alpha2_Volume(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.VolumeMount": schema_pkg_apis_ignite_v1alpha2_VolumeMount(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.BlockDeviceVolume": schema_pkg_apis_ignite_v1alpha3_BlockDeviceVolume(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.Configuration": schema_pkg_apis_ignite_v1alpha3_Configuration(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.ConfigurationSpec": schema_pkg_apis_ignite_v1alpha3_ConfigurationSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.FileMapping": schema_pkg_apis_ignite_v1alpha3_FileMapping(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.Image": schema_pkg_apis_ignite_v1alpha3_Image(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.ImageSpec": schema_pkg_apis_ignite_v1alpha3_ImageSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.ImageStatus": schema_pkg_apis_ignite_v1alpha3_ImageStatus(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.Kernel": schema_pkg_apis_ignite_v1alpha3_Kernel(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.KernelSpec": schema_pkg_apis_ignite_v1alpha3_KernelSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.KernelStatus": schema_pkg_apis_ignite_v1alpha3_KernelStatus(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.Network": schema_pkg_apis_ignite_v1alpha3_Network(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.OCIImageSource": schema_pkg_apis_ignite_v1alpha3_OCIImageSource(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.Pool": schema_pkg_apis_ignite_v1alpha3_Pool(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.PoolDevice": schema_pkg_apis_ignite_v1alpha3_PoolDevice(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.PoolSpec": schema_pkg_apis_ignite_v1alpha3_PoolSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.PoolStatus": schema_pkg_apis_ignite_v1alpha3_PoolStatus(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.Runtime": schema_pkg_apis_ignite_v1alpha3_Runtime(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.SSH": schema_pkg_apis_ignite_v1alpha3_SSH(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.VM": schema_pkg_apis_ignite_v1alpha3_VM(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.VMImageSpec": schema_pkg_apis_ignite_v1alpha3_VMImageSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.VMKernelSpec": schema_pkg_apis_ignite_v1alpha3_VMKernelSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.VMNetworkSpec": schema_pkg_apis_ignite_v1alpha3_VMNetworkSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.VMSandboxSpec": schema_pkg_apis_ignite_v1alpha3_VMSandboxSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.VMSpec": schema_pkg_apis_ignite_v1alpha3_VMSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.VMStatus": schema_pkg_apis_ignite_v1alpha3_VMStatus(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.VMStorageSpec": schema_pkg_apis_ignite_v1alpha3_VMStorageSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.Volume": schema_pkg_apis_ignite_v1alpha3_Volume(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.VolumeMount": schema_pkg_apis_ignite_v1alpha3_VolumeMount(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha4.BlockDeviceVolume": schema_pkg_apis_ignite_v1alpha4_BlockDeviceVolume(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha4.Configuration": schema_pkg_apis_ignite_v1alpha4_Configuration(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha4.ConfigurationSpec": schema_pkg_apis_ignite_v1alpha4_ConfigurationSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha4.FileMapping": schema_pkg_apis_ignite_v1alpha4_FileMapping(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha4.Image": schema_pkg_apis_ignite_v1alpha4_Image(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha4.ImageSpec": schema_pkg_apis_ignite_v1alpha4_ImageSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha4.ImageStatus": schema_pkg_apis_ignite_v1alpha4_ImageStatus(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha4.Kernel": schema_pkg_apis_ignite_v1alpha4_Kernel(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha4.KernelSpec": schema_pkg_apis_ignite_v1alpha4_KernelSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha4.KernelStatus": schema_pkg_apis_ignite_v1alpha4_KernelStatus(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha4.Network": schema_pkg_apis_ignite_v1alpha4_Network(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha4.OCIImageSource": schema_pkg_apis_ignite_v1alpha4_OCIImageSource(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha4.Pool": schema_pkg_apis_ignite_v1alpha4_Pool(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha4.PoolDevice": schema_pkg_apis_ignite_v1alpha4_PoolDevice(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha4.PoolSpec": schema_pkg_apis_ignite_v1alpha4_PoolSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha4.PoolStatus": schema_pkg_apis_ignite_v1alpha4_PoolStatus(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha4.Runtime": schema_pkg_apis_ignite_v1alpha4_Runtime(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha4.SSH": schema_pkg_apis_ignite_v1alpha4_SSH(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha4.VM": schema_pkg_apis_ignite_v1alpha4_VM(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha4.VMImageSpec": schema_pkg_apis_ignite_v1alpha4_VMImageSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha4.VMKernelSpec": schema_pkg_apis_ignite_v1alpha4_VMKernelSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha4.VMNetworkSpec": schema_pkg_apis_ignite_v1alpha4_VMNetworkSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha4.VMSandboxSpec": schema_pkg_apis_ignite_v1alpha4_VMSandboxSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha4.VMSpec": schema_pkg_apis_ignite_v1alpha4_VMSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha4.VMStatus": schema_pkg_apis_ignite_v1alpha4_VMStatus(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha4.VMStorageSpec": schema_pkg_apis_ignite_v1alpha4_VMStorageSpec(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha4.Volume": schema_pkg_apis_ignite_v1alpha4_Volume(ref),
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha4.VolumeMount": schema_pkg_apis_ignite_v1alpha4_VolumeMount(ref),
"github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.DMID": schema_pkg_apis_meta_v1alpha1_DMID(ref),
"github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.OCIContentID": schema_pkg_apis_meta_v1alpha1_OCIContentID(ref),
"github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.OCIImageRef": schema_pkg_apis_meta_v1alpha1_OCIImageRef(ref),
"github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.PortMapping": schema_pkg_apis_meta_v1alpha1_PortMapping(ref),
"github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.Size": schema_pkg_apis_meta_v1alpha1_Size(ref),
}
}
func schema_pkg_apis_ignite_v1alpha2_BlockDeviceVolume(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "BlockDeviceVolume defines a block device on the host",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"path": {
SchemaProps: spec.SchemaProps{
Default: "",
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"path"},
},
},
}
}
func schema_pkg_apis_ignite_v1alpha2_FileMapping(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "FileMapping defines mappings between files on the host and VM",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"hostPath": {
SchemaProps: spec.SchemaProps{
Default: "",
Type: []string{"string"},
Format: "",
},
},
"vmPath": {
SchemaProps: spec.SchemaProps{
Default: "",
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"hostPath", "vmPath"},
},
},
}
}
func schema_pkg_apis_ignite_v1alpha2_Image(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "Image represents a cached OCI image ready to be used with Ignite",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"TypeMeta": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta"),
},
},
"metadata": {
SchemaProps: spec.SchemaProps{
Description: "runtime.ObjectMeta is also embedded into the struct, and defines the human-readable name, and the machine-readable ID Name is available at the .metadata.name JSON path ID is available at the .metadata.uid JSON path (the Go type is k8s.io/apimachinery/pkg/types.UID, which is only a typed string)",
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/libgitops/pkg/runtime.ObjectMeta"),
},
},
"spec": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.ImageSpec"),
},
},
"status": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.ImageStatus"),
},
},
},
Required: []string{"TypeMeta", "metadata", "spec", "status"},
},
},
Dependencies: []string{
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.ImageSpec", "github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.ImageStatus", "github.com/weaveworks/libgitops/pkg/runtime.ObjectMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta"},
}
}
func schema_pkg_apis_ignite_v1alpha2_ImageSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "ImageSpec declares what the image contains",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"oci": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.OCIImageRef"),
},
},
},
Required: []string{"oci"},
},
},
Dependencies: []string{
"github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.OCIImageRef"},
}
}
func schema_pkg_apis_ignite_v1alpha2_ImageStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "ImageStatus defines the status of the image",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"ociSource": {
SchemaProps: spec.SchemaProps{
Description: "OCISource contains the information about how this OCI image was imported",
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.OCIImageSource"),
},
},
},
Required: []string{"ociSource"},
},
},
Dependencies: []string{
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.OCIImageSource"},
}
}
func schema_pkg_apis_ignite_v1alpha2_Kernel(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "Kernel is a serializable object that caches information about imported kernels This file is stored in /var/lib/firecracker/kernels/{oci-image-digest}/metadata.json",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"TypeMeta": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta"),
},
},
"metadata": {
SchemaProps: spec.SchemaProps{
Description: "runtime.ObjectMeta is also embedded into the struct, and defines the human-readable name, and the machine-readable ID Name is available at the .metadata.name JSON path ID is available at the .metadata.uid JSON path (the Go type is k8s.io/apimachinery/pkg/types.UID, which is only a typed string)",
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/libgitops/pkg/runtime.ObjectMeta"),
},
},
"spec": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.KernelSpec"),
},
},
"status": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.KernelStatus"),
},
},
},
Required: []string{"TypeMeta", "metadata", "spec", "status"},
},
},
Dependencies: []string{
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.KernelSpec", "github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.KernelStatus", "github.com/weaveworks/libgitops/pkg/runtime.ObjectMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta"},
}
}
func schema_pkg_apis_ignite_v1alpha2_KernelSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "KernelSpec describes the properties of a kernel",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"oci": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.OCIImageRef"),
},
},
},
Required: []string{"oci"},
},
},
Dependencies: []string{
"github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.OCIImageRef"},
}
}
func schema_pkg_apis_ignite_v1alpha2_KernelStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "KernelStatus describes the status of a kernel",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"version": {
SchemaProps: spec.SchemaProps{
Default: "",
Type: []string{"string"},
Format: "",
},
},
"ociSource": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.OCIImageSource"),
},
},
},
Required: []string{"version", "ociSource"},
},
},
Dependencies: []string{
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.OCIImageSource"},
}
}
func schema_pkg_apis_ignite_v1alpha2_OCIImageSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "OCIImageSource specifies how the OCI image was imported. It is the status variant of OCIImageClaim",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"id": {
SchemaProps: spec.SchemaProps{
Description: "ID defines the source's content ID (e.g. the canonical OCI path or Docker image ID)",
Ref: ref("github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.OCIContentID"),
},
},
"size": {
SchemaProps: spec.SchemaProps{
Description: "Size defines the size of the source in bytes",
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.Size"),
},
},
},
Required: []string{"id", "size"},
},
},
Dependencies: []string{
"github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.OCIContentID", "github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.Size"},
}
}
func schema_pkg_apis_ignite_v1alpha2_Pool(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "Pool defines device mapper pool database This file is managed by the snapshotter part of Ignite, and the file (existing as a singleton) is present at /var/lib/firecracker/snapshotter/pool.json",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"TypeMeta": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta"),
},
},
"spec": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.PoolSpec"),
},
},
"status": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.PoolStatus"),
},
},
},
Required: []string{"TypeMeta", "spec", "status"},
},
},
Dependencies: []string{
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.PoolSpec", "github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.PoolStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta"},
}
}
func schema_pkg_apis_ignite_v1alpha2_PoolDevice(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "PoolDevice defines one device in the pool",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"size": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.Size"),
},
},
"parent": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.DMID"),
},
},
"type": {
SchemaProps: spec.SchemaProps{
Description: "Type specifies the type of the contents of the device",
Default: "",
Type: []string{"string"},
Format: "",
},
},
"metadataPath": {
SchemaProps: spec.SchemaProps{
Description: "MetadataPath points to the JSON/YAML file with metadata about this device This is most often of the format /var/lib/firecracker/{type}/{id}/metadata.json",
Default: "",
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"size", "parent", "type", "metadataPath"},
},
},
Dependencies: []string{
"github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.DMID", "github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.Size"},
}
}
func schema_pkg_apis_ignite_v1alpha2_PoolSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "PoolSpec defines the Pool's specification",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"metadataSize": {
SchemaProps: spec.SchemaProps{
Description: "MetadataSize specifies the size of the pool's metadata",
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.Size"),
},
},
"dataSize": {
SchemaProps: spec.SchemaProps{
Description: "DataSize specifies the size of the pool's data",
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.Size"),
},
},
"allocationSize": {
SchemaProps: spec.SchemaProps{
Description: "AllocationSize specifies the smallest size that can be allocated at a time",
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.Size"),
},
},
"metadataPath": {
SchemaProps: spec.SchemaProps{
Description: "MetadataPath points to the file where device mapper stores all metadata information Defaults to constants.SNAPSHOTTER_METADATA_PATH",
Default: "",
Type: []string{"string"},
Format: "",
},
},
"dataPath": {
SchemaProps: spec.SchemaProps{
Description: "DataPath points to the backing physical device or sparse file (to be loop mounted) for the pool Defaults to constants.SNAPSHOTTER_DATA_PATH",
Default: "",
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"metadataSize", "dataSize", "allocationSize", "metadataPath", "dataPath"},
},
},
Dependencies: []string{
"github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.Size"},
}
}
func schema_pkg_apis_ignite_v1alpha2_PoolStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "PoolStatus defines the Pool's current status",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"devices": {
SchemaProps: spec.SchemaProps{
Description: "The Devices array needs to contain pointers to accommodate \"holes\" in the mapping Where devices have been deleted, the pointer is nil",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.PoolDevice"),
},
},
},
},
},
},
Required: []string{"devices"},
},
},
Dependencies: []string{
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.PoolDevice"},
}
}
func schema_pkg_apis_ignite_v1alpha2_Runtime(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "Runtime specifies the VM's runtime information",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"id": {
SchemaProps: spec.SchemaProps{
Default: "",
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"id"},
},
},
}
}
func schema_pkg_apis_ignite_v1alpha2_SSH(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "SSH specifies different ways to connect via SSH to the VM SSH uses a custom marshaller/unmarshaller. If generate is true, it marshals to true (a JSON bool). If PublicKey is set, it marshals to that string.",
Type: []string{"object"},
},
},
}
}
func schema_pkg_apis_ignite_v1alpha2_VM(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "VM represents a virtual machine run by Firecracker These files are stored in /var/lib/firecracker/vm/{vm-id}/metadata.json",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"TypeMeta": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta"),
},
},
"metadata": {
SchemaProps: spec.SchemaProps{
Description: "runtime.ObjectMeta is also embedded into the struct, and defines the human-readable name, and the machine-readable ID Name is available at the .metadata.name JSON path ID is available at the .metadata.uid JSON path (the Go type is k8s.io/apimachinery/pkg/types.UID, which is only a typed string)",
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/libgitops/pkg/runtime.ObjectMeta"),
},
},
"spec": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.VMSpec"),
},
},
"status": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.VMStatus"),
},
},
},
Required: []string{"TypeMeta", "metadata", "spec", "status"},
},
},
Dependencies: []string{
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.VMSpec", "github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.VMStatus", "github.com/weaveworks/libgitops/pkg/runtime.ObjectMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta"},
}
}
func schema_pkg_apis_ignite_v1alpha2_VMImageSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"object"},
Properties: map[string]spec.Schema{
"oci": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.OCIImageRef"),
},
},
},
Required: []string{"oci"},
},
},
Dependencies: []string{
"github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.OCIImageRef"},
}
}
func schema_pkg_apis_ignite_v1alpha2_VMKernelSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"object"},
Properties: map[string]spec.Schema{
"oci": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.OCIImageRef"),
},
},
"cmdLine": {
SchemaProps: spec.SchemaProps{
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"oci"},
},
},
Dependencies: []string{
"github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.OCIImageRef"},
}
}
func schema_pkg_apis_ignite_v1alpha2_VMNetworkSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"object"},
Properties: map[string]spec.Schema{
"ports": {
SchemaProps: spec.SchemaProps{
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.PortMapping"),
},
},
},
},
},
},
},
},
Dependencies: []string{
"github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.PortMapping"},
}
}
func schema_pkg_apis_ignite_v1alpha2_VMSandboxSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "VMSandboxSpec is the spec of the sandbox used for the VM.",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"oci": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.OCIImageRef"),
},
},
},
Required: []string{"oci"},
},
},
Dependencies: []string{
"github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.OCIImageRef"},
}
}
func schema_pkg_apis_ignite_v1alpha2_VMSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "VMSpec describes the configuration of a VM",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"image": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.VMImageSpec"),
},
},
"sandbox": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.VMSandboxSpec"),
},
},
"kernel": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.VMKernelSpec"),
},
},
"cpus": {
SchemaProps: spec.SchemaProps{
Default: 0,
Type: []string{"integer"},
Format: "int64",
},
},
"memory": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.Size"),
},
},
"diskSize": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.Size"),
},
},
"network": {
SchemaProps: spec.SchemaProps{
Description: "Currently both will show in the JSON output as empty arrays. Making them pointers requires plenty of nil checks (as their contents are accessed directly) and is very risky for stability. APIMachinery potentially has a solution.",
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.VMNetworkSpec"),
},
},
"storage": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.VMStorageSpec"),
},
},
"copyFiles": {
SchemaProps: spec.SchemaProps{
Description: "This will be done at either \"ignite start\" or \"ignite create\" time",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.FileMapping"),
},
},
},
},
},
"ssh": {
SchemaProps: spec.SchemaProps{
Description: "SSH specifies how the SSH setup should be done nil here means \"don't do anything special\" If SSH.Generate is set, Ignite will generate a new SSH key and copy it in to authorized_keys in the VM Specifying a path in SSH.Generate means \"use this public key\" If SSH.PublicKey is set, this struct will marshal as a string using that path If SSH.Generate is set, this struct will marshal as a bool => true",
Ref: ref("github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.SSH"),
},
},
},
Required: []string{"image", "sandbox", "kernel", "cpus", "memory", "diskSize"},
},
},
Dependencies: []string{
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.FileMapping", "github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.SSH", "github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.VMImageSpec", "github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.VMKernelSpec", "github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.VMNetworkSpec", "github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.VMSandboxSpec", "github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.VMStorageSpec", "github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1.Size"},
}
}
func schema_pkg_apis_ignite_v1alpha2_VMStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "VMStatus defines the status of a VM",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"running": {
SchemaProps: spec.SchemaProps{
Default: false,
Type: []string{"boolean"},
Format: "",
},
},
"runtime": {
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.Runtime"),
},
},
"startTime": {
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/weaveworks/libgitops/pkg/runtime.Time"),
},
},
"ipAddresses": {
SchemaProps: spec.SchemaProps{
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"string"},
Format: "byte",
},
},
},
},
},
"image": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.OCIImageSource"),
},
},
"kernel": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.OCIImageSource"),
},
},
},
Required: []string{"running", "image", "kernel"},
},
},
Dependencies: []string{
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.OCIImageSource", "github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.Runtime", "github.com/weaveworks/libgitops/pkg/runtime.Time"},
}
}
func schema_pkg_apis_ignite_v1alpha2_VMStorageSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "VMStorageSpec defines the VM's Volumes and VolumeMounts",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"volumes": {
SchemaProps: spec.SchemaProps{
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.Volume"),
},
},
},
},
},
"volumeMounts": {
SchemaProps: spec.SchemaProps{
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.VolumeMount"),
},
},
},
},
},
},
},
},
Dependencies: []string{
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.Volume", "github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.VolumeMount"},
}
}
func schema_pkg_apis_ignite_v1alpha2_Volume(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "Volume defines named storage volume",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"name": {
SchemaProps: spec.SchemaProps{
Default: "",
Type: []string{"string"},
Format: "",
},
},
"blockDevice": {
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.BlockDeviceVolume"),
},
},
},
Required: []string{"name"},
},
},
Dependencies: []string{
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha2.BlockDeviceVolume"},
}
}
func schema_pkg_apis_ignite_v1alpha2_VolumeMount(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "VolumeMount defines the mount point for a named volume inside a VM",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"name": {
SchemaProps: spec.SchemaProps{
Default: "",
Type: []string{"string"},
Format: "",
},
},
"mountPath": {
SchemaProps: spec.SchemaProps{
Default: "",
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"name", "mountPath"},
},
},
}
}
func schema_pkg_apis_ignite_v1alpha3_BlockDeviceVolume(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "BlockDeviceVolume defines a block device on the host",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"path": {
SchemaProps: spec.SchemaProps{
Default: "",
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"path"},
},
},
}
}
func schema_pkg_apis_ignite_v1alpha3_Configuration(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "Configuration represents the ignite runtime configuration.",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"TypeMeta": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta"),
},
},
"metadata": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/libgitops/pkg/runtime.ObjectMeta"),
},
},
"spec": {
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.ConfigurationSpec"),
},
},
},
Required: []string{"TypeMeta", "metadata", "spec"},
},
},
Dependencies: []string{
"github.com/weaveworks/ignite/pkg/apis/ignite/v1alpha3.ConfigurationSpec", "github.com/weaveworks/libgitops/pkg/runtime.ObjectMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta"},
}
}
func schema_pkg_apis_ignite_v1alpha3_ConfigurationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "ConfigurationSpec defines the ignite configuration.",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"runtime": {
SchemaProps: spec.SchemaProps{
Type: []string{"string"},
Format: "",
},
},
"networkPlugin": {