forked from argoproj/argo-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi_generated.go
1952 lines (1915 loc) · 80 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 main. 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.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.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.GitArtifact": schema_pkg_apis_workflow_v1alpha1_GitArtifact(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.Metadata": schema_pkg_apis_workflow_v1alpha1_Metadata(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.Parameter": schema_pkg_apis_workflow_v1alpha1_Parameter(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.Sidecar": schema_pkg_apis_workflow_v1alpha1_Sidecar(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.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.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.WorkflowStep": schema_pkg_apis_workflow_v1alpha1_WorkflowStep(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",
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",
Properties: map[string]spec.Schema{
"parameters": {
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": {
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",
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"),
},
},
"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"),
},
},
},
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.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.",
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"),
},
},
"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.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_ArtifactoryArtifact(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "ArtifactoryArtifact is the location of an artifactory artifact",
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",
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_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",
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"),
},
},
"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: "",
},
},
},
Required: []string{"name", "template"},
},
},
Dependencies: []string{
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Arguments", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Item", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Sequence"},
}
}
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",
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": {
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"),
},
},
},
},
},
},
Required: []string{"tasks"},
},
},
Dependencies: []string{
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.DAGTask"},
}
}
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",
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: "",
},
},
"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"),
},
},
},
Required: []string{"repo"},
},
},
Dependencies: []string{
"k8s.io/api/core/v1.SecretKeySelector"},
}
}
func schema_pkg_apis_workflow_v1alpha1_HTTPArtifact(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "HTTPArtifact allows an file served on HTTP to be placed as an input artifact in a container",
Properties: map[string]spec.Schema{
"url": {
SchemaProps: spec.SchemaProps{
Description: "URL of the artifact",
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"url"},
},
},
Dependencies: []string{},
}
}
func schema_pkg_apis_workflow_v1alpha1_Inputs(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "Inputs are the mechanism for passing parameters, artifacts, volumes from one template to another",
Properties: map[string]spec.Schema{
"parameters": {
SchemaProps: spec.SchemaProps{
Description: "Parameters are a list of parameters passed as inputs",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Parameter"),
},
},
},
},
},
"artifacts": {
SchemaProps: spec.SchemaProps{
Description: "Artifact are a list of artifacts passed as inputs",
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_Item(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "Item expands a single workflow step into multiple parallel steps The value of Item can be a map, string, bool, or number",
Type: Item{}.OpenAPISchemaType(),
Format: Item{}.OpenAPISchemaFormat(),
},
},
}
}
func schema_pkg_apis_workflow_v1alpha1_Metadata(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "Pod metdata",
Properties: map[string]spec.Schema{
"annotations": {
SchemaProps: spec.SchemaProps{
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"string"},
Format: "",
},
},
},
},
},
"labels": {
SchemaProps: spec.SchemaProps{
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"string"},
Format: "",
},
},
},
},
},
},
},
},
Dependencies: []string{},
}
}
func schema_pkg_apis_workflow_v1alpha1_NoneStrategy(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "NoneStrategy indicates to skip tar process and upload the files or directory tree as independent files. Note that if the artifact is a directory, the artifact driver must support the ability to save/load the directory appropriately.",
Properties: map[string]spec.Schema{},
},
},
Dependencies: []string{},
}
}
func schema_pkg_apis_workflow_v1alpha1_Outputs(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "Outputs hold parameters, artifacts, and results from a step",
Properties: map[string]spec.Schema{
"parameters": {
SchemaProps: spec.SchemaProps{
Description: "Parameters holds the list of output parameters produced by a step",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Parameter"),
},
},
},
},
},
"artifacts": {
SchemaProps: spec.SchemaProps{
Description: "Artifacts holds the list of output artifacts produced by a step",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Artifact"),
},
},
},
},
},
"result": {
SchemaProps: spec.SchemaProps{
Description: "Result holds the result (stdout) of a script template",
Type: []string{"string"},
Format: "",
},
},
},
},
},
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_Parameter(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "Parameter indicate a passed string parameter to a service template with an optional default value",
Properties: map[string]spec.Schema{
"name": {
SchemaProps: spec.SchemaProps{
Description: "Name is the parameter name",
Type: []string{"string"},
Format: "",
},
},
"default": {
SchemaProps: spec.SchemaProps{
Description: "Default is the default value to use for an input parameter if a value was not supplied",
Type: []string{"string"},
Format: "",
},
},
"value": {
SchemaProps: spec.SchemaProps{
Description: "Value is the literal value to use for the parameter. If specified in the context of an input parameter, the value takes precedence over any passed values",
Type: []string{"string"},
Format: "",
},
},
"valueFrom": {
SchemaProps: spec.SchemaProps{
Description: "ValueFrom is the source for the output parameter's value",
Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ValueFrom"),
},
},
"globalName": {
SchemaProps: spec.SchemaProps{
Description: "GlobalName exports an output parameter to the global scope, making it available as '{{workflow.outputs.parameters.XXXX}} and in workflow.status.outputs.parameters",
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"name"},
},
},
Dependencies: []string{
"github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ValueFrom"},
}
}
func schema_pkg_apis_workflow_v1alpha1_RawArtifact(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "RawArtifact allows raw string content to be placed as an artifact in a container",
Properties: map[string]spec.Schema{
"data": {
SchemaProps: spec.SchemaProps{
Description: "Data is the string contents of the artifact",
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"data"},
},
},
Dependencies: []string{},
}
}
func schema_pkg_apis_workflow_v1alpha1_ResourceTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "ResourceTemplate is a template subtype to manipulate kubernetes resources",
Properties: map[string]spec.Schema{
"action": {
SchemaProps: spec.SchemaProps{
Description: "Action is the action to perform to the resource. Must be one of: get, create, apply, delete, replace",
Type: []string{"string"},
Format: "",
},
},
"manifest": {
SchemaProps: spec.SchemaProps{
Description: "Manifest contains the kubernetes manifest",
Type: []string{"string"},
Format: "",
},
},
"successCondition": {
SchemaProps: spec.SchemaProps{
Description: "SuccessCondition is a label selector expression which describes the conditions of the k8s resource in which it is acceptable to proceed to the following step",
Type: []string{"string"},
Format: "",
},
},
"failureCondition": {
SchemaProps: spec.SchemaProps{
Description: "FailureCondition is a label selector expression which describes the conditions of the k8s resource in which the step was considered failed",
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"action", "manifest"},
},
},
Dependencies: []string{},
}
}
func schema_pkg_apis_workflow_v1alpha1_RetryStrategy(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "RetryStrategy provides controls on how to retry a workflow step",
Properties: map[string]spec.Schema{
"limit": {
SchemaProps: spec.SchemaProps{
Description: "Limit is the maximum number of attempts when retrying a container",
Type: []string{"integer"},
Format: "int32",
},
},
},
},
},
Dependencies: []string{},
}
}
func schema_pkg_apis_workflow_v1alpha1_S3Artifact(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "S3Artifact is the location of an S3 artifact",
Properties: map[string]spec.Schema{
"endpoint": {
SchemaProps: spec.SchemaProps{
Description: "Endpoint is the hostname of the bucket endpoint",
Type: []string{"string"},
Format: "",
},
},
"bucket": {
SchemaProps: spec.SchemaProps{
Description: "Bucket is the name of the bucket",
Type: []string{"string"},
Format: "",
},
},
"region": {
SchemaProps: spec.SchemaProps{
Description: "Region contains the optional bucket region",
Type: []string{"string"},
Format: "",
},
},
"insecure": {
SchemaProps: spec.SchemaProps{
Description: "Insecure will connect to the service with TLS",
Type: []string{"boolean"},
Format: "",
},
},
"accessKeySecret": {
SchemaProps: spec.SchemaProps{
Description: "AccessKeySecret is the secret selector to the bucket's access key",
Ref: ref("k8s.io/api/core/v1.SecretKeySelector"),
},
},
"secretKeySecret": {
SchemaProps: spec.SchemaProps{
Description: "SecretKeySecret is the secret selector to the bucket's secret key",
Ref: ref("k8s.io/api/core/v1.SecretKeySelector"),
},
},
"key": {
SchemaProps: spec.SchemaProps{
Description: "Key is the key in the bucket where the artifact resides",
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"endpoint", "bucket", "accessKeySecret", "secretKeySecret", "key"},
},
},
Dependencies: []string{
"k8s.io/api/core/v1.SecretKeySelector"},
}
}
func schema_pkg_apis_workflow_v1alpha1_S3Bucket(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "S3Bucket contains the access information required for interfacing with an S3 bucket",
Properties: map[string]spec.Schema{
"endpoint": {
SchemaProps: spec.SchemaProps{
Description: "Endpoint is the hostname of the bucket endpoint",
Type: []string{"string"},
Format: "",
},
},
"bucket": {
SchemaProps: spec.SchemaProps{
Description: "Bucket is the name of the bucket",
Type: []string{"string"},
Format: "",
},
},
"region": {
SchemaProps: spec.SchemaProps{
Description: "Region contains the optional bucket region",
Type: []string{"string"},
Format: "",
},
},
"insecure": {
SchemaProps: spec.SchemaProps{
Description: "Insecure will connect to the service with TLS",
Type: []string{"boolean"},
Format: "",
},
},
"accessKeySecret": {
SchemaProps: spec.SchemaProps{
Description: "AccessKeySecret is the secret selector to the bucket's access key",
Ref: ref("k8s.io/api/core/v1.SecretKeySelector"),
},
},
"secretKeySecret": {
SchemaProps: spec.SchemaProps{
Description: "SecretKeySecret is the secret selector to the bucket's secret key",
Ref: ref("k8s.io/api/core/v1.SecretKeySelector"),
},
},
},
Required: []string{"endpoint", "bucket", "accessKeySecret", "secretKeySecret"},
},
},
Dependencies: []string{
"k8s.io/api/core/v1.SecretKeySelector"},
}
}
func schema_pkg_apis_workflow_v1alpha1_ScriptTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "ScriptTemplate is a template subtype to enable scripting through code steps",
Properties: map[string]spec.Schema{
"name": {
SchemaProps: spec.SchemaProps{
Description: "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.",
Type: []string{"string"},
Format: "",
},
},
"image": {
SchemaProps: spec.SchemaProps{
Description: "Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.",
Type: []string{"string"},
Format: "",
},
},
"command": {
SchemaProps: spec.SchemaProps{
Description: "Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"string"},
Format: "",
},
},
},
},
},
"args": {
SchemaProps: spec.SchemaProps{
Description: "Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"string"},
Format: "",
},
},
},
},
},
"workingDir": {
SchemaProps: spec.SchemaProps{
Description: "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.",
Type: []string{"string"},
Format: "",
},
},
"ports": {
VendorExtensible: spec.VendorExtensible{
Extensions: spec.Extensions{
"x-kubernetes-patch-merge-key": "containerPort",
"x-kubernetes-patch-strategy": "merge",
},
},
SchemaProps: spec.SchemaProps{
Description: "List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated.",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("k8s.io/api/core/v1.ContainerPort"),
},
},
},
},
},
"envFrom": {
SchemaProps: spec.SchemaProps{
Description: "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("k8s.io/api/core/v1.EnvFromSource"),
},
},
},
},
},
"env": {
VendorExtensible: spec.VendorExtensible{
Extensions: spec.Extensions{
"x-kubernetes-patch-merge-key": "name",
"x-kubernetes-patch-strategy": "merge",
},
},
SchemaProps: spec.SchemaProps{
Description: "List of environment variables to set in the container. Cannot be updated.",
Type: []string{"array"},
Items: &spec.SchemaOrArray{