forked from argoproj/argo-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi_generated.go
3556 lines (3498 loc) · 142 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 v1alpha1
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/argoproj/argo/pkg/apis/workflow/v1alpha1.ArchiveStrategy": schema_pkg_apis_workflow_v1alpha1_ArchiveStrategy(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Arguments": schema_pkg_apis_workflow_v1alpha1_Arguments(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Artifact": schema_pkg_apis_workflow_v1alpha1_Artifact(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ArtifactLocation": schema_pkg_apis_workflow_v1alpha1_ArtifactLocation(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ArtifactRepositoryRef": schema_pkg_apis_workflow_v1alpha1_ArtifactRepositoryRef(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ArtifactoryArtifact": schema_pkg_apis_workflow_v1alpha1_ArtifactoryArtifact(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ArtifactoryAuth": schema_pkg_apis_workflow_v1alpha1_ArtifactoryAuth(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Backoff": schema_pkg_apis_workflow_v1alpha1_Backoff(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ContinueOn": schema_pkg_apis_workflow_v1alpha1_ContinueOn(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.CronWorkflow": schema_pkg_apis_workflow_v1alpha1_CronWorkflow(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.CronWorkflowList": schema_pkg_apis_workflow_v1alpha1_CronWorkflowList(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.CronWorkflowSpec": schema_pkg_apis_workflow_v1alpha1_CronWorkflowSpec(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.CronWorkflowStatus": schema_pkg_apis_workflow_v1alpha1_CronWorkflowStatus(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.DAGTask": schema_pkg_apis_workflow_v1alpha1_DAGTask(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.DAGTemplate": schema_pkg_apis_workflow_v1alpha1_DAGTemplate(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ExecutorConfig": schema_pkg_apis_workflow_v1alpha1_ExecutorConfig(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.GitArtifact": schema_pkg_apis_workflow_v1alpha1_GitArtifact(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.HDFSArtifact": schema_pkg_apis_workflow_v1alpha1_HDFSArtifact(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.HDFSConfig": schema_pkg_apis_workflow_v1alpha1_HDFSConfig(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.HDFSKrbConfig": schema_pkg_apis_workflow_v1alpha1_HDFSKrbConfig(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.HTTPArtifact": schema_pkg_apis_workflow_v1alpha1_HTTPArtifact(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Inputs": schema_pkg_apis_workflow_v1alpha1_Inputs(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Item": schema_pkg_apis_workflow_v1alpha1_Item(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ItemValue": schema_pkg_apis_workflow_v1alpha1_ItemValue(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Metadata": schema_pkg_apis_workflow_v1alpha1_Metadata(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.NodeStatus": schema_pkg_apis_workflow_v1alpha1_NodeStatus(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.NoneStrategy": schema_pkg_apis_workflow_v1alpha1_NoneStrategy(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Outputs": schema_pkg_apis_workflow_v1alpha1_Outputs(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ParallelSteps": schema_pkg_apis_workflow_v1alpha1_ParallelSteps(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Parameter": schema_pkg_apis_workflow_v1alpha1_Parameter(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.PodGC": schema_pkg_apis_workflow_v1alpha1_PodGC(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.RawArtifact": schema_pkg_apis_workflow_v1alpha1_RawArtifact(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ResourceTemplate": schema_pkg_apis_workflow_v1alpha1_ResourceTemplate(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.RetryStrategy": schema_pkg_apis_workflow_v1alpha1_RetryStrategy(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.S3Artifact": schema_pkg_apis_workflow_v1alpha1_S3Artifact(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.S3Bucket": schema_pkg_apis_workflow_v1alpha1_S3Bucket(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ScriptTemplate": schema_pkg_apis_workflow_v1alpha1_ScriptTemplate(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Sequence": schema_pkg_apis_workflow_v1alpha1_Sequence(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.SuspendTemplate": schema_pkg_apis_workflow_v1alpha1_SuspendTemplate(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.TTLStrategy": schema_pkg_apis_workflow_v1alpha1_TTLStrategy(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.TarStrategy": schema_pkg_apis_workflow_v1alpha1_TarStrategy(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Template": schema_pkg_apis_workflow_v1alpha1_Template(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.TemplateRef": schema_pkg_apis_workflow_v1alpha1_TemplateRef(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.UserContainer": schema_pkg_apis_workflow_v1alpha1_UserContainer(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ValueFrom": schema_pkg_apis_workflow_v1alpha1_ValueFrom(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Workflow": schema_pkg_apis_workflow_v1alpha1_Workflow(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.WorkflowList": schema_pkg_apis_workflow_v1alpha1_WorkflowList(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.WorkflowSpec": schema_pkg_apis_workflow_v1alpha1_WorkflowSpec(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.WorkflowStatus": schema_pkg_apis_workflow_v1alpha1_WorkflowStatus(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.WorkflowStep": schema_pkg_apis_workflow_v1alpha1_WorkflowStep(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.WorkflowTemplate": schema_pkg_apis_workflow_v1alpha1_WorkflowTemplate(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.WorkflowTemplateList": schema_pkg_apis_workflow_v1alpha1_WorkflowTemplateList(ref),
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.WorkflowTemplateSpec": schema_pkg_apis_workflow_v1alpha1_WorkflowTemplateSpec(ref),
}
}
func schema_pkg_apis_workflow_v1alpha1_ArchiveStrategy(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "ArchiveStrategy describes how to archive files/directory when saving artifacts",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"tar": {
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.TarStrategy"),
},
},
"none": {
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.NoneStrategy"),
},
},
},
},
},
Dependencies: []string{
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.NoneStrategy", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.TarStrategy"},
}
}
func schema_pkg_apis_workflow_v1alpha1_Arguments(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "Arguments to a template",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"parameters": {
VendorExtensible: spec.VendorExtensible{
Extensions: spec.Extensions{
"x-kubernetes-patch-merge-key": "name",
"x-kubernetes-patch-strategy": "merge",
},
},
SchemaProps: spec.SchemaProps{
Description: "Parameters is the list of parameters to pass to the template or workflow",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Parameter"),
},
},
},
},
},
"artifacts": {
VendorExtensible: spec.VendorExtensible{
Extensions: spec.Extensions{
"x-kubernetes-patch-merge-key": "name",
"x-kubernetes-patch-strategy": "merge",
},
},
SchemaProps: spec.SchemaProps{
Description: "Artifacts is the list of artifacts to pass to the template or workflow",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Artifact"),
},
},
},
},
},
},
},
},
Dependencies: []string{
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Artifact", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Parameter"},
}
}
func schema_pkg_apis_workflow_v1alpha1_Artifact(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "Artifact indicates an artifact to place at a specified path",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"name": {
SchemaProps: spec.SchemaProps{
Description: "name of the artifact. must be unique within a template's inputs/outputs.",
Type: []string{"string"},
Format: "",
},
},
"path": {
SchemaProps: spec.SchemaProps{
Description: "Path is the container path to the artifact",
Type: []string{"string"},
Format: "",
},
},
"mode": {
SchemaProps: spec.SchemaProps{
Description: "mode bits to use on this file, must be a value between 0 and 0777 set when loading input artifacts.",
Type: []string{"integer"},
Format: "int32",
},
},
"from": {
SchemaProps: spec.SchemaProps{
Description: "From allows an artifact to reference an artifact from a previous step",
Type: []string{"string"},
Format: "",
},
},
"archiveLogs": {
SchemaProps: spec.SchemaProps{
Description: "ArchiveLogs indicates if the container logs should be archived",
Type: []string{"boolean"},
Format: "",
},
},
"s3": {
SchemaProps: spec.SchemaProps{
Description: "S3 contains S3 artifact location details",
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.S3Artifact"),
},
},
"git": {
SchemaProps: spec.SchemaProps{
Description: "Git contains git artifact location details",
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.GitArtifact"),
},
},
"http": {
SchemaProps: spec.SchemaProps{
Description: "HTTP contains HTTP artifact location details",
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.HTTPArtifact"),
},
},
"artifactory": {
SchemaProps: spec.SchemaProps{
Description: "Artifactory contains artifactory artifact location details",
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ArtifactoryArtifact"),
},
},
"hdfs": {
SchemaProps: spec.SchemaProps{
Description: "HDFS contains HDFS artifact location details",
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.HDFSArtifact"),
},
},
"raw": {
SchemaProps: spec.SchemaProps{
Description: "Raw contains raw artifact location details",
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.RawArtifact"),
},
},
"globalName": {
SchemaProps: spec.SchemaProps{
Description: "GlobalName exports an output artifact to the global scope, making it available as '{{workflow.outputs.artifacts.XXXX}} and in workflow.status.outputs.artifacts",
Type: []string{"string"},
Format: "",
},
},
"archive": {
SchemaProps: spec.SchemaProps{
Description: "Archive controls how the artifact will be saved to the artifact repository.",
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ArchiveStrategy"),
},
},
"optional": {
SchemaProps: spec.SchemaProps{
Description: "Make Artifacts optional, if Artifacts doesn't generate or exist",
Type: []string{"boolean"},
Format: "",
},
},
},
Required: []string{"name"},
},
},
Dependencies: []string{
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ArchiveStrategy", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ArtifactoryArtifact", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.GitArtifact", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.HDFSArtifact", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.HTTPArtifact", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.RawArtifact", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.S3Artifact"},
}
}
func schema_pkg_apis_workflow_v1alpha1_ArtifactLocation(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "ArtifactLocation describes a location for a single or multiple artifacts. It is used as single artifact in the context of inputs/outputs (e.g. outputs.artifacts.artname). It is also used to describe the location of multiple artifacts such as the archive location of a single workflow step, which the executor will use as a default location to store its files.",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"archiveLogs": {
SchemaProps: spec.SchemaProps{
Description: "ArchiveLogs indicates if the container logs should be archived",
Type: []string{"boolean"},
Format: "",
},
},
"s3": {
SchemaProps: spec.SchemaProps{
Description: "S3 contains S3 artifact location details",
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.S3Artifact"),
},
},
"git": {
SchemaProps: spec.SchemaProps{
Description: "Git contains git artifact location details",
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.GitArtifact"),
},
},
"http": {
SchemaProps: spec.SchemaProps{
Description: "HTTP contains HTTP artifact location details",
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.HTTPArtifact"),
},
},
"artifactory": {
SchemaProps: spec.SchemaProps{
Description: "Artifactory contains artifactory artifact location details",
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ArtifactoryArtifact"),
},
},
"hdfs": {
SchemaProps: spec.SchemaProps{
Description: "HDFS contains HDFS artifact location details",
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.HDFSArtifact"),
},
},
"raw": {
SchemaProps: spec.SchemaProps{
Description: "Raw contains raw artifact location details",
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.RawArtifact"),
},
},
},
},
},
Dependencies: []string{
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ArtifactoryArtifact", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.GitArtifact", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.HDFSArtifact", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.HTTPArtifact", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.RawArtifact", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.S3Artifact"},
}
}
func schema_pkg_apis_workflow_v1alpha1_ArtifactRepositoryRef(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"object"},
Properties: map[string]spec.Schema{
"configMap": {
SchemaProps: spec.SchemaProps{
Type: []string{"string"},
Format: "",
},
},
"key": {
SchemaProps: spec.SchemaProps{
Type: []string{"string"},
Format: "",
},
},
},
},
},
}
}
func schema_pkg_apis_workflow_v1alpha1_ArtifactoryArtifact(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "ArtifactoryArtifact is the location of an artifactory artifact",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"url": {
SchemaProps: spec.SchemaProps{
Description: "URL of the artifact",
Type: []string{"string"},
Format: "",
},
},
"usernameSecret": {
SchemaProps: spec.SchemaProps{
Description: "UsernameSecret is the secret selector to the repository username",
Ref: ref("k8s.io/api/core/v1.SecretKeySelector"),
},
},
"passwordSecret": {
SchemaProps: spec.SchemaProps{
Description: "PasswordSecret is the secret selector to the repository password",
Ref: ref("k8s.io/api/core/v1.SecretKeySelector"),
},
},
},
Required: []string{"url"},
},
},
Dependencies: []string{
"k8s.io/api/core/v1.SecretKeySelector"},
}
}
func schema_pkg_apis_workflow_v1alpha1_ArtifactoryAuth(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "ArtifactoryAuth describes the secret selectors required for authenticating to artifactory",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"usernameSecret": {
SchemaProps: spec.SchemaProps{
Description: "UsernameSecret is the secret selector to the repository username",
Ref: ref("k8s.io/api/core/v1.SecretKeySelector"),
},
},
"passwordSecret": {
SchemaProps: spec.SchemaProps{
Description: "PasswordSecret is the secret selector to the repository password",
Ref: ref("k8s.io/api/core/v1.SecretKeySelector"),
},
},
},
},
},
Dependencies: []string{
"k8s.io/api/core/v1.SecretKeySelector"},
}
}
func schema_pkg_apis_workflow_v1alpha1_Backoff(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"object"},
Properties: map[string]spec.Schema{
"duration": {
SchemaProps: spec.SchemaProps{
Type: []string{"string"},
Format: "",
},
},
"factor": {
SchemaProps: spec.SchemaProps{
Type: []string{"integer"},
Format: "int32",
},
},
"maxDuration": {
SchemaProps: spec.SchemaProps{
Type: []string{"string"},
Format: "",
},
},
},
},
},
}
}
func schema_pkg_apis_workflow_v1alpha1_ContinueOn(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "ContinueOn defines if a workflow should continue even if a task or step fails/errors. It can be specified if the workflow should continue when the pod errors, fails or both.",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"error": {
SchemaProps: spec.SchemaProps{
Type: []string{"boolean"},
Format: "",
},
},
"failed": {
SchemaProps: spec.SchemaProps{
Type: []string{"boolean"},
Format: "",
},
},
},
},
},
}
}
func schema_pkg_apis_workflow_v1alpha1_CronWorkflow(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "CronWorkflow is the definition of a scheduled workflow resource",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"kind": {
SchemaProps: spec.SchemaProps{
Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
Type: []string{"string"},
Format: "",
},
},
"apiVersion": {
SchemaProps: spec.SchemaProps{
Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
Type: []string{"string"},
Format: "",
},
},
"metadata": {
SchemaProps: spec.SchemaProps{
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"),
},
},
"spec": {
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.CronWorkflowSpec"),
},
},
"status": {
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.CronWorkflowStatus"),
},
},
},
Required: []string{"spec", "status"},
},
},
Dependencies: []string{
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.CronWorkflowSpec", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.CronWorkflowStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
}
}
func schema_pkg_apis_workflow_v1alpha1_CronWorkflowList(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "CronWorkflowList is list of CronWorkflow resources",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"kind": {
SchemaProps: spec.SchemaProps{
Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
Type: []string{"string"},
Format: "",
},
},
"apiVersion": {
SchemaProps: spec.SchemaProps{
Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
Type: []string{"string"},
Format: "",
},
},
"metadata": {
SchemaProps: spec.SchemaProps{
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"),
},
},
"items": {
SchemaProps: spec.SchemaProps{
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.CronWorkflow"),
},
},
},
},
},
},
Required: []string{"metadata", "items"},
},
},
Dependencies: []string{
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.CronWorkflow", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
}
}
func schema_pkg_apis_workflow_v1alpha1_CronWorkflowSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"object"},
Properties: map[string]spec.Schema{
"workflowSpec": {
SchemaProps: spec.SchemaProps{
Description: "WorkflowSpec is the spec of the workflow to be run",
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.WorkflowSpec"),
},
},
"schedule": {
SchemaProps: spec.SchemaProps{
Description: "Schedule is a schedule to run the Workflow in Cron format",
Type: []string{"string"},
Format: "",
},
},
"concurrencyPolicy": {
SchemaProps: spec.SchemaProps{
Description: "ConcurrencyPolicy is the K8s-style concurrency policy that will be used",
Type: []string{"string"},
Format: "",
},
},
"suspend": {
SchemaProps: spec.SchemaProps{
Description: "Suspend is a flag that will stop new CronWorkflows from running if set to true",
Type: []string{"boolean"},
Format: "",
},
},
"startingDeadlineSeconds": {
SchemaProps: spec.SchemaProps{
Description: "StartingDeadlineSeconds is the K8s-style deadline that will limit the time a CronWorkflow will be run after its original scheduled time if it is missed.",
Type: []string{"integer"},
Format: "int64",
},
},
"successfulJobsHistoryLimit": {
SchemaProps: spec.SchemaProps{
Description: "SuccessfulJobsHistoryLimit is the number of successful jobs to be kept at a time",
Type: []string{"integer"},
Format: "int32",
},
},
"failedJobsHistoryLimit": {
SchemaProps: spec.SchemaProps{
Description: "FailedJobsHistoryLimit is the number of successful jobs to be kept at a time",
Type: []string{"integer"},
Format: "int32",
},
},
"timezone": {
SchemaProps: spec.SchemaProps{
Description: "Timezone is the timezone against which the cron schedule will be calculated, e.g. \"Asia/Tokyo\". Default is machine's local time.",
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"workflowSpec", "schedule"},
},
},
Dependencies: []string{
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.WorkflowSpec"},
}
}
func schema_pkg_apis_workflow_v1alpha1_CronWorkflowStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"object"},
Properties: map[string]spec.Schema{
"active": {
SchemaProps: spec.SchemaProps{
Description: "Active is a list of active workflows stemming from this CronWorkflow",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("k8s.io/api/core/v1.ObjectReference"),
},
},
},
},
},
"lastScheduledTime": {
SchemaProps: spec.SchemaProps{
Description: "LastScheduleTime is the last time the CronWorkflow was scheduled",
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
},
},
},
},
},
Dependencies: []string{
"k8s.io/api/core/v1.ObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
}
}
func schema_pkg_apis_workflow_v1alpha1_DAGTask(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "DAGTask represents a node in the graph during DAG execution",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"name": {
SchemaProps: spec.SchemaProps{
Description: "Name is the name of the target",
Type: []string{"string"},
Format: "",
},
},
"template": {
SchemaProps: spec.SchemaProps{
Description: "Name of template to execute",
Type: []string{"string"},
Format: "",
},
},
"arguments": {
SchemaProps: spec.SchemaProps{
Description: "Arguments are the parameter and artifact arguments to the template",
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Arguments"),
},
},
"templateRef": {
SchemaProps: spec.SchemaProps{
Description: "TemplateRef is the reference to the template resource to execute.",
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.TemplateRef"),
},
},
"dependencies": {
SchemaProps: spec.SchemaProps{
Description: "Dependencies are name of other targets which this depends on",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"string"},
Format: "",
},
},
},
},
},
"withItems": {
SchemaProps: spec.SchemaProps{
Description: "WithItems expands a task into multiple parallel tasks from the items in the list",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Item"),
},
},
},
},
},
"withParam": {
SchemaProps: spec.SchemaProps{
Description: "WithParam expands a task into multiple parallel tasks from the value in the parameter, which is expected to be a JSON list.",
Type: []string{"string"},
Format: "",
},
},
"withSequence": {
SchemaProps: spec.SchemaProps{
Description: "WithSequence expands a task into a numeric sequence",
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Sequence"),
},
},
"when": {
SchemaProps: spec.SchemaProps{
Description: "When is an expression in which the task should conditionally execute",
Type: []string{"string"},
Format: "",
},
},
"continueOn": {
SchemaProps: spec.SchemaProps{
Description: "ContinueOn makes argo to proceed with the following step even if this step fails. Errors and Failed states can be specified",
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ContinueOn"),
},
},
"onExit": {
SchemaProps: spec.SchemaProps{
Description: "OnExit is a template reference which is invoked at the end of the template, irrespective of the success, failure, or error of the primary template.",
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"name", "template"},
},
},
Dependencies: []string{
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Arguments", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ContinueOn", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Item", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Sequence", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.TemplateRef"},
}
}
func schema_pkg_apis_workflow_v1alpha1_DAGTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "DAGTemplate is a template subtype for directed acyclic graph templates",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"target": {
SchemaProps: spec.SchemaProps{
Description: "Target are one or more names of targets to execute in a DAG",
Type: []string{"string"},
Format: "",
},
},
"tasks": {
VendorExtensible: spec.VendorExtensible{
Extensions: spec.Extensions{
"x-kubernetes-patch-merge-key": "name",
"x-kubernetes-patch-strategy": "merge",
},
},
SchemaProps: spec.SchemaProps{
Description: "Tasks are a list of DAG tasks",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.DAGTask"),
},
},
},
},
},
"failFast": {
SchemaProps: spec.SchemaProps{
Description: "This flag is for DAG logic. The DAG logic has a built-in \"fail fast\" feature to stop scheduling new steps, as soon as it detects that one of the DAG nodes is failed. Then it waits until all DAG nodes are completed before failing the DAG itself. The FailFast flag default is true, if set to false, it will allow a DAG to run all branches of the DAG to completion (either success or failure), regardless of the failed outcomes of branches in the DAG. More info and example about this feature at https://github.com/argoproj/argo/issues/1442",
Type: []string{"boolean"},
Format: "",
},
},
},
Required: []string{"tasks"},
},
},
Dependencies: []string{
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.DAGTask"},
}
}
func schema_pkg_apis_workflow_v1alpha1_ExecutorConfig(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "ExecutorConfig holds configurations of an executor container.",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"serviceAccountName": {
SchemaProps: spec.SchemaProps{
Description: "ServiceAccountName specifies the service account name of the executor container.",
Type: []string{"string"},
Format: "",
},
},
},
},
},
}
}
func schema_pkg_apis_workflow_v1alpha1_GitArtifact(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "GitArtifact is the location of an git artifact",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"repo": {
SchemaProps: spec.SchemaProps{
Description: "Repo is the git repository",
Type: []string{"string"},
Format: "",
},
},
"revision": {
SchemaProps: spec.SchemaProps{
Description: "Revision is the git commit, tag, branch to checkout",
Type: []string{"string"},
Format: "",
},
},
"depth": {
SchemaProps: spec.SchemaProps{
Description: "Depth specifies clones/fetches should be shallow and include the given number of commits from the branch tip",
Type: []string{"integer"},
Format: "int64",
},
},
"fetch": {
SchemaProps: spec.SchemaProps{
Description: "Fetch specifies a number of refs that should be fetched before checkout",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"string"},
Format: "",
},
},
},
},
},
"usernameSecret": {
SchemaProps: spec.SchemaProps{
Description: "UsernameSecret is the secret selector to the repository username",
Ref: ref("k8s.io/api/core/v1.SecretKeySelector"),
},
},
"passwordSecret": {
SchemaProps: spec.SchemaProps{
Description: "PasswordSecret is the secret selector to the repository password",
Ref: ref("k8s.io/api/core/v1.SecretKeySelector"),
},
},
"sshPrivateKeySecret": {
SchemaProps: spec.SchemaProps{
Description: "SSHPrivateKeySecret is the secret selector to the repository ssh private key",
Ref: ref("k8s.io/api/core/v1.SecretKeySelector"),
},
},
"insecureIgnoreHostKey": {
SchemaProps: spec.SchemaProps{
Description: "InsecureIgnoreHostKey disables SSH strict host key checking during git clone",
Type: []string{"boolean"},
Format: "",
},
},
},
Required: []string{"repo"},
},
},
Dependencies: []string{
"k8s.io/api/core/v1.SecretKeySelector"},
}
}
func schema_pkg_apis_workflow_v1alpha1_HDFSArtifact(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "HDFSArtifact is the location of an HDFS artifact",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"krbCCacheSecret": {
SchemaProps: spec.SchemaProps{
Description: "KrbCCacheSecret is the secret selector for Kerberos ccache Either ccache or keytab can be set to use Kerberos.",
Ref: ref("k8s.io/api/core/v1.SecretKeySelector"),
},
},
"krbKeytabSecret": {
SchemaProps: spec.SchemaProps{
Description: "KrbKeytabSecret is the secret selector for Kerberos keytab Either ccache or keytab can be set to use Kerberos.",
Ref: ref("k8s.io/api/core/v1.SecretKeySelector"),
},
},
"krbUsername": {
SchemaProps: spec.SchemaProps{
Description: "KrbUsername is the Kerberos username used with Kerberos keytab It must be set if keytab is used.",
Type: []string{"string"},
Format: "",
},
},
"krbRealm": {
SchemaProps: spec.SchemaProps{
Description: "KrbRealm is the Kerberos realm used with Kerberos keytab It must be set if keytab is used.",
Type: []string{"string"},
Format: "",
},
},
"krbConfigConfigMap": {
SchemaProps: spec.SchemaProps{
Description: "KrbConfig is the configmap selector for Kerberos config as string It must be set if either ccache or keytab is used.",
Ref: ref("k8s.io/api/core/v1.ConfigMapKeySelector"),
},
},
"krbServicePrincipalName": {
SchemaProps: spec.SchemaProps{
Description: "KrbServicePrincipalName is the principal name of Kerberos service It must be set if either ccache or keytab is used.",
Type: []string{"string"},
Format: "",
},
},
"addresses": {
SchemaProps: spec.SchemaProps{
Description: "Addresses is accessible addresses of HDFS name nodes",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"string"},
Format: "",
},
},
},
},
},
"hdfsUser": {
SchemaProps: spec.SchemaProps{
Description: "HDFSUser is the user to access HDFS file system. It is ignored if either ccache or keytab is used.",
Type: []string{"string"},
Format: "",
},
},
"path": {
SchemaProps: spec.SchemaProps{
Description: "Path is a file path in HDFS",
Type: []string{"string"},
Format: "",
},
},
"force": {
SchemaProps: spec.SchemaProps{
Description: "Force copies a file forcibly even if it exists (default: false)",
Type: []string{"boolean"},
Format: "",
},
},
},
Required: []string{"addresses", "path"},
},
},
Dependencies: []string{
"k8s.io/api/core/v1.ConfigMapKeySelector", "k8s.io/api/core/v1.SecretKeySelector"},
}
}
func schema_pkg_apis_workflow_v1alpha1_HDFSConfig(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "HDFSConfig is configurations for HDFS",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"krbCCacheSecret": {
SchemaProps: spec.SchemaProps{
Description: "KrbCCacheSecret is the secret selector for Kerberos ccache Either ccache or keytab can be set to use Kerberos.",
Ref: ref("k8s.io/api/core/v1.SecretKeySelector"),
},
},