forked from tektoncd/pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger.json
559 lines (559 loc) · 25.5 KB
/
swagger.json
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
{
"swagger": "2.0",
"info": {
"description": "Tekton Pipeline",
"title": "Tekton",
"version": "v0.17.2"
},
"paths": {},
"definitions": {
"pod.AffinityAssistantTemplate": {
"description": "AffinityAssistantTemplate holds pod specific configuration and is a subset of the generic pod Template",
"type": "object",
"properties": {
"imagePullSecrets": {
"description": "ImagePullSecrets gives the name of the secret used by the pod to pull the image if specified",
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/v1.LocalObjectReference"
},
"x-kubernetes-list-type": "atomic"
},
"nodeSelector": {
"description": "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/",
"type": "object",
"additionalProperties": {
"type": "string",
"default": ""
}
},
"securityContext": {
"description": "SecurityContext sets the security context for the pod",
"$ref": "#/definitions/v1.PodSecurityContext"
},
"tolerations": {
"description": "If specified, the pod's tolerations.",
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/v1.Toleration"
},
"x-kubernetes-list-type": "atomic"
}
}
},
"pod.Template": {
"description": "Template holds pod specific configuration",
"type": "object",
"properties": {
"affinity": {
"description": "If specified, the pod's scheduling constraints",
"$ref": "#/definitions/v1.Affinity"
},
"automountServiceAccountToken": {
"description": "AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted.",
"type": "boolean"
},
"dnsConfig": {
"description": "Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy.",
"$ref": "#/definitions/v1.PodDNSConfig"
},
"dnsPolicy": {
"description": "Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.",
"type": "string"
},
"enableServiceLinks": {
"description": "EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.",
"type": "boolean"
},
"env": {
"description": "List of environment variables that can be provided to the containers belonging to the pod.",
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/v1.EnvVar"
},
"x-kubernetes-list-type": "atomic",
"x-kubernetes-patch-merge-key": "name",
"x-kubernetes-patch-strategy": "merge"
},
"hostAliases": {
"description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods.",
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/v1.HostAlias"
},
"x-kubernetes-list-type": "atomic"
},
"hostNetwork": {
"description": "HostNetwork specifies whether the pod may use the node network namespace",
"type": "boolean"
},
"imagePullSecrets": {
"description": "ImagePullSecrets gives the name of the secret used by the pod to pull the image if specified",
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/v1.LocalObjectReference"
},
"x-kubernetes-list-type": "atomic"
},
"nodeSelector": {
"description": "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/",
"type": "object",
"additionalProperties": {
"type": "string",
"default": ""
}
},
"priorityClassName": {
"description": "If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.",
"type": "string"
},
"runtimeClassName": {
"description": "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14.",
"type": "string"
},
"schedulerName": {
"description": "SchedulerName specifies the scheduler to be used to dispatch the Pod",
"type": "string"
},
"securityContext": {
"description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field.",
"$ref": "#/definitions/v1.PodSecurityContext"
},
"tolerations": {
"description": "If specified, the pod's tolerations.",
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/v1.Toleration"
},
"x-kubernetes-list-type": "atomic"
},
"topologySpreadConstraints": {
"description": "TopologySpreadConstraints controls how Pods are spread across your cluster among failure-domains such as regions, zones, nodes, and other user-defined topology domains.",
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/v1.TopologySpreadConstraint"
},
"x-kubernetes-list-type": "atomic"
},
"volumes": {
"description": "List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes",
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/v1.Volume"
},
"x-kubernetes-list-type": "atomic",
"x-kubernetes-patch-merge-key": "name",
"x-kubernetes-patch-strategy": "merge,retainKeys"
}
}
},
"v1alpha1.Authority": {
"description": "The Authority block defines the keys for validating signatures.",
"type": "object",
"required": [
"name"
],
"properties": {
"key": {
"description": "Key contains the public key to validate the resource.",
"$ref": "#/definitions/v1alpha1.KeyRef"
},
"name": {
"description": "Name is the name for this authority.",
"type": "string",
"default": ""
}
}
},
"v1alpha1.EmbeddedRunSpec": {
"description": "EmbeddedRunSpec allows custom task definitions to be embedded",
"type": "object",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"default": {},
"$ref": "#/definitions/v1beta1.PipelineTaskMetadata"
},
"spec": {
"description": "Spec is a specification of a custom task",
"$ref": "#/definitions/k8s.io.apimachinery.pkg.runtime.RawExtension"
}
}
},
"v1alpha1.KeyRef": {
"description": "KeyRef defines the reference to a public key",
"type": "object",
"properties": {
"data": {
"description": "Data contains the inline public key.",
"type": "string"
},
"hashAlgorithm": {
"description": "HashAlgorithm always defaults to sha256 if the algorithm hasn't been explicitly set",
"type": "string"
},
"kms": {
"description": "KMS contains the KMS url of the public key Supported formats differ based on the KMS system used. One example of a KMS url could be: gcpkms://projects/[PROJECT]/locations/[LOCATION]\u003e/keyRings/[KEYRING]/cryptoKeys/[KEY]/cryptoKeyVersions/[KEY_VERSION] For more examples please refer https://docs.sigstore.dev/cosign/kms_support. Note that the KMS is not supported yet.",
"type": "string"
},
"secretRef": {
"description": "SecretRef sets a reference to a secret with the key.",
"$ref": "#/definitions/v1.SecretReference"
}
}
},
"v1alpha1.ResourcePattern": {
"description": "ResourcePattern defines the pattern of the resource source",
"type": "object",
"required": [
"pattern"
],
"properties": {
"pattern": {
"description": "Pattern defines a resource pattern. Regex is created to filter resources based on `Pattern` Example patterns: GitHub resource: https://github.com/tektoncd/catalog.git, https://github.com/tektoncd/* Bundle resource: gcr.io/tekton-releases/catalog/upstream/git-clone, gcr.io/tekton-releases/catalog/upstream/* Hub resource: https://artifacthub.io/*,",
"type": "string",
"default": ""
}
}
},
"v1alpha1.Run": {
"description": "Run represents a single execution of a Custom Task.",
"type": "object",
"properties": {
"apiVersion": {
"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"
},
"kind": {
"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"
},
"metadata": {
"default": {},
"$ref": "#/definitions/v1.ObjectMeta"
},
"spec": {
"default": {},
"$ref": "#/definitions/v1alpha1.RunSpec"
},
"status": {
"default": {},
"$ref": "#/definitions/github.com.tektoncd.pipeline.pkg.apis.run.v1alpha1.RunStatus"
}
}
},
"v1alpha1.RunList": {
"description": "RunList contains a list of Run",
"type": "object",
"required": [
"items"
],
"properties": {
"apiVersion": {
"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"
},
"items": {
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/v1alpha1.Run"
}
},
"kind": {
"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"
},
"metadata": {
"default": {},
"$ref": "#/definitions/v1.ListMeta"
}
}
},
"v1alpha1.RunSpec": {
"description": "RunSpec defines the desired state of Run",
"type": "object",
"properties": {
"params": {
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/v1beta1.Param"
}
},
"podTemplate": {
"description": "PodTemplate holds pod specific configuration",
"$ref": "#/definitions/pod.Template"
},
"ref": {
"$ref": "#/definitions/v1beta1.TaskRef"
},
"retries": {
"description": "Used for propagating retries count to custom tasks",
"type": "integer",
"format": "int32"
},
"serviceAccountName": {
"type": "string",
"default": ""
},
"spec": {
"description": "Spec is a specification of a custom task",
"$ref": "#/definitions/v1alpha1.EmbeddedRunSpec"
},
"status": {
"description": "Used for cancelling a run (and maybe more later on)",
"type": "string"
},
"statusMessage": {
"description": "Status message for cancellation.",
"type": "string"
},
"timeout": {
"description": "Time after which the custom-task times out. Refer Go's ParseDuration documentation for expected format: https://golang.org/pkg/time/#ParseDuration",
"$ref": "#/definitions/v1.Duration"
},
"workspaces": {
"description": "Workspaces is a list of WorkspaceBindings from volumes to workspaces.",
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/v1beta1.WorkspaceBinding"
}
}
}
},
"v1alpha1.StepAction": {
"description": "StepAction represents the actionable components of Step. The Step can only reference it from the cluster or using remote resolution.",
"type": "object",
"properties": {
"apiVersion": {
"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"
},
"kind": {
"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"
},
"metadata": {
"default": {},
"$ref": "#/definitions/v1.ObjectMeta"
},
"spec": {
"description": "Spec holds the desired state of the Step from the client",
"default": {},
"$ref": "#/definitions/v1alpha1.StepActionSpec"
}
}
},
"v1alpha1.StepActionList": {
"description": "StepActionList contains a list of StepActions",
"type": "object",
"required": [
"items"
],
"properties": {
"apiVersion": {
"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"
},
"items": {
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/v1alpha1.StepAction"
}
},
"kind": {
"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"
},
"metadata": {
"default": {},
"$ref": "#/definitions/v1.ListMeta"
}
}
},
"v1alpha1.StepActionSpec": {
"description": "StepActionSpec contains the actionable components of a step.",
"type": "object",
"properties": {
"args": {
"description": "Arguments to the entrypoint. The 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. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(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": "array",
"items": {
"type": "string",
"default": ""
},
"x-kubernetes-list-type": "atomic"
},
"command": {
"description": "Entrypoint array. Not executed within a shell. The 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. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(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": "array",
"items": {
"type": "string",
"default": ""
},
"x-kubernetes-list-type": "atomic"
},
"description": {
"description": "Description is a user-facing description of the stepaction that may be used to populate a UI.",
"type": "string"
},
"env": {
"description": "List of environment variables to set in the container. Cannot be updated.",
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/v1.EnvVar"
},
"x-kubernetes-list-type": "atomic",
"x-kubernetes-patch-merge-key": "name",
"x-kubernetes-patch-strategy": "merge"
},
"image": {
"description": "Image reference name to run for this StepAction. More info: https://kubernetes.io/docs/concepts/containers/images",
"type": "string"
},
"params": {
"description": "Params is a list of input parameters required to run the stepAction. Params must be supplied as inputs in Steps unless they declare a defaultvalue.",
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/v1.ParamSpec"
},
"x-kubernetes-list-type": "atomic"
},
"results": {
"description": "Results are values that this StepAction can output",
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/v1.StepResult"
},
"x-kubernetes-list-type": "atomic"
},
"script": {
"description": "Script is the contents of an executable file to execute.\n\nIf Script is not empty, the Step cannot have an Command and the Args will be passed to the Script.",
"type": "string"
},
"securityContext": {
"description": "SecurityContext defines the security options the Step should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ The value set in StepAction will take precedence over the value from Task.",
"$ref": "#/definitions/v1.SecurityContext"
},
"volumeMounts": {
"description": "Volumes to mount into the Step's filesystem. Cannot be updated.",
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/v1.VolumeMount"
},
"x-kubernetes-list-type": "atomic",
"x-kubernetes-patch-merge-key": "mountPath",
"x-kubernetes-patch-strategy": "merge"
},
"workingDir": {
"description": "Step'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"
}
}
},
"v1alpha1.VerificationPolicy": {
"description": "VerificationPolicy defines the rules to verify Tekton resources. VerificationPolicy can config the mapping from resources to a list of public keys, so when verifying the resources we can use the corresponding public keys.",
"type": "object",
"required": [
"spec"
],
"properties": {
"apiVersion": {
"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"
},
"kind": {
"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"
},
"metadata": {
"default": {},
"$ref": "#/definitions/v1.ObjectMeta"
},
"spec": {
"description": "Spec holds the desired state of the VerificationPolicy.",
"default": {},
"$ref": "#/definitions/v1alpha1.VerificationPolicySpec"
}
}
},
"v1alpha1.VerificationPolicyList": {
"description": "VerificationPolicyList contains a list of VerificationPolicy",
"type": "object",
"required": [
"items"
],
"properties": {
"apiVersion": {
"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"
},
"items": {
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/v1alpha1.VerificationPolicy"
}
},
"kind": {
"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"
},
"metadata": {
"default": {},
"$ref": "#/definitions/v1.ListMeta"
}
}
},
"v1alpha1.VerificationPolicySpec": {
"description": "VerificationPolicySpec defines the patterns and authorities.",
"type": "object",
"required": [
"resources",
"authorities"
],
"properties": {
"authorities": {
"description": "Authorities defines the rules for validating signatures.",
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/v1alpha1.Authority"
}
},
"mode": {
"description": "Mode controls whether a failing policy will fail the taskrun/pipelinerun, or only log the warnings enforce - fail the taskrun/pipelinerun if verification fails (default) warn - don't fail the taskrun/pipelinerun if verification fails but log warnings",
"type": "string"
},
"resources": {
"description": "Resources defines the patterns of resources sources that should be subject to this policy. For example, we may want to apply this Policy from a certain GitHub repo. Then the ResourcesPattern should be valid regex. E.g. If using gitresolver, and we want to config keys from a certain git repo. `ResourcesPattern` can be `https://github.com/tektoncd/catalog.git`, we will use regex to filter out those resources.",
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/v1alpha1.ResourcePattern"
}
}
}
}
}
}