-
Notifications
You must be signed in to change notification settings - Fork 584
/
zz_generated.swagger_doc_generated.go
692 lines (572 loc) · 52.5 KB
/
zz_generated.swagger_doc_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
package v1
// This file contains a collection of methods that can be used from go-restful to
// generate Swagger API documentation for its models. Please read this PR for more
// information on the implementation: https://github.com/emicklei/go-restful/pull/215
//
// TODOs are ignored from the parser (e.g. TODO(andronat):... || TODO:...) if and only if
// they are on one line! For multiple line or blocks that you want to ignore use ---.
// Any context after a --- is ignored.
//
// Those methods can be generated by using hack/update-swagger-docs.sh
// AUTO-GENERATED FUNCTIONS START HERE
var map_BinaryBuildRequestOptions = map[string]string{
"": "BinaryBuildRequestOptions are the options required to fully speficy a binary build request\n\nCompatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).",
"metadata": "metadata is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
"asFile": "asFile determines if the binary should be created as a file within the source rather than extracted as an archive",
"revision.commit": "revision.commit is the value identifying a specific commit",
"revision.message": "revision.message is the description of a specific commit",
"revision.authorName": "revision.authorName of the source control user",
"revision.authorEmail": "revision.authorEmail of the source control user",
"revision.committerName": "revision.committerName of the source control user",
"revision.committerEmail": "revision.committerEmail of the source control user",
}
func (BinaryBuildRequestOptions) SwaggerDoc() map[string]string {
return map_BinaryBuildRequestOptions
}
var map_BinaryBuildSource = map[string]string{
"": "BinaryBuildSource describes a binary file to be used for the Docker and Source build strategies, where the file will be extracted and used as the build source.",
"asFile": "asFile indicates that the provided binary input should be considered a single file within the build input. For example, specifying \"webapp.war\" would place the provided binary as `/webapp.war` for the builder. If left empty, the Docker and Source build strategies assume this file is a zip, tar, or tar.gz file and extract it as the source. The custom strategy receives this binary as standard input. This filename may not contain slashes or be '..' or '.'.",
}
func (BinaryBuildSource) SwaggerDoc() map[string]string {
return map_BinaryBuildSource
}
var map_BitbucketWebHookCause = map[string]string{
"": "BitbucketWebHookCause has information about a Bitbucket webhook that triggered a build.",
}
func (BitbucketWebHookCause) SwaggerDoc() map[string]string {
return map_BitbucketWebHookCause
}
var map_Build = map[string]string{
"": "Build encapsulates the inputs needed to produce a new deployable image, as well as the status of the execution and a reference to the Pod which executed the build.\n\nCompatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).",
"metadata": "metadata is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
"spec": "spec is all the inputs used to execute the build.",
"status": "status is the current status of the build.",
}
func (Build) SwaggerDoc() map[string]string {
return map_Build
}
var map_BuildCondition = map[string]string{
"": "BuildCondition describes the state of a build at a certain point.",
"type": "Type of build condition.",
"status": "Status of the condition, one of True, False, Unknown.",
"lastUpdateTime": "The last time this condition was updated.",
"lastTransitionTime": "The last time the condition transitioned from one status to another.",
"reason": "The reason for the condition's last transition.",
"message": "A human readable message indicating details about the transition.",
}
func (BuildCondition) SwaggerDoc() map[string]string {
return map_BuildCondition
}
var map_BuildConfig = map[string]string{
"": "Build configurations define a build process for new container images. There are three types of builds possible - a container image build using a Dockerfile, a Source-to-Image build that uses a specially prepared base image that accepts source code that it can make runnable, and a custom build that can run // arbitrary container images as a base and accept the build parameters. Builds run on the cluster and on completion are pushed to the container image registry specified in the \"output\" section. A build can be triggered via a webhook, when the base image changes, or when a user manually requests a new build be // created.\n\nEach build created by a build configuration is numbered and refers back to its parent configuration. Multiple builds can be triggered at once. Builds that do not have \"output\" set can be used to test code or run a verification build.\n\nCompatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).",
"metadata": "metadata is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
"spec": "spec holds all the input necessary to produce a new build, and the conditions when to trigger them.",
"status": "status holds any relevant information about a build config",
}
func (BuildConfig) SwaggerDoc() map[string]string {
return map_BuildConfig
}
var map_BuildConfigList = map[string]string{
"": "BuildConfigList is a collection of BuildConfigs.\n\nCompatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).",
"metadata": "metadata is the standard list's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
"items": "items is a list of build configs",
}
func (BuildConfigList) SwaggerDoc() map[string]string {
return map_BuildConfigList
}
var map_BuildConfigSpec = map[string]string{
"": "BuildConfigSpec describes when and how builds are created",
"triggers": "triggers determine how new Builds can be launched from a BuildConfig. If no triggers are defined, a new build can only occur as a result of an explicit client build creation.",
"runPolicy": "RunPolicy describes how the new build created from this build configuration will be scheduled for execution. This is optional, if not specified we default to \"Serial\".",
"successfulBuildsHistoryLimit": "successfulBuildsHistoryLimit is the number of old successful builds to retain. When a BuildConfig is created, the 5 most recent successful builds are retained unless this value is set. If removed after the BuildConfig has been created, all successful builds are retained.",
"failedBuildsHistoryLimit": "failedBuildsHistoryLimit is the number of old failed builds to retain. When a BuildConfig is created, the 5 most recent failed builds are retained unless this value is set. If removed after the BuildConfig has been created, all failed builds are retained.",
}
func (BuildConfigSpec) SwaggerDoc() map[string]string {
return map_BuildConfigSpec
}
var map_BuildConfigStatus = map[string]string{
"": "BuildConfigStatus contains current state of the build config object.",
"lastVersion": "lastVersion is used to inform about number of last triggered build.",
"imageChangeTriggers": "ImageChangeTriggers captures the runtime state of any ImageChangeTrigger specified in the BuildConfigSpec, including the value reconciled by the OpenShift APIServer for the lastTriggeredImageID. There is a single entry in this array for each image change trigger in spec. Each trigger status references the ImageStreamTag that acts as the source of the trigger.",
}
func (BuildConfigStatus) SwaggerDoc() map[string]string {
return map_BuildConfigStatus
}
var map_BuildList = map[string]string{
"": "BuildList is a collection of Builds.\n\nCompatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).",
"metadata": "metadata is the standard list's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
"items": "items is a list of builds",
}
func (BuildList) SwaggerDoc() map[string]string {
return map_BuildList
}
var map_BuildLog = map[string]string{
"": "BuildLog is the (unused) resource associated with the build log redirector\n\nCompatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).",
}
func (BuildLog) SwaggerDoc() map[string]string {
return map_BuildLog
}
var map_BuildLogOptions = map[string]string{
"": "BuildLogOptions is the REST options for a build log\n\nCompatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).",
"container": "cointainer for which to stream logs. Defaults to only container if there is one container in the pod.",
"follow": "follow if true indicates that the build log should be streamed until the build terminates.",
"previous": "previous returns previous build logs. Defaults to false.",
"sinceSeconds": "sinceSeconds is a relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.",
"sinceTime": "sinceTime is an RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.",
"timestamps": "timestamps, If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.",
"tailLines": "tailLines, If set, is the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime",
"limitBytes": "limitBytes, If set, is the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.",
"nowait": "noWait if true causes the call to return immediately even if the build is not available yet. Otherwise the server will wait until the build has started.",
"version": "version of the build for which to view logs.",
"insecureSkipTLSVerifyBackend": "insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet).",
}
func (BuildLogOptions) SwaggerDoc() map[string]string {
return map_BuildLogOptions
}
var map_BuildOutput = map[string]string{
"": "BuildOutput is input to a build strategy and describes the container image that the strategy should produce.",
"to": "to defines an optional location to push the output of this build to. Kind must be one of 'ImageStreamTag' or 'DockerImage'. This value will be used to look up a container image repository to push to. In the case of an ImageStreamTag, the ImageStreamTag will be looked for in the namespace of the build unless Namespace is specified.",
"pushSecret": "PushSecret is the name of a Secret that would be used for setting up the authentication for executing the Docker push to authentication enabled Docker Registry (or Docker Hub).",
"imageLabels": "imageLabels define a list of labels that are applied to the resulting image. If there are multiple labels with the same name then the last one in the list is used.",
}
func (BuildOutput) SwaggerDoc() map[string]string {
return map_BuildOutput
}
var map_BuildPostCommitSpec = map[string]string{
"": "A BuildPostCommitSpec holds a build post commit hook specification. The hook executes a command in a temporary container running the build output image, immediately after the last layer of the image is committed and before the image is pushed to a registry. The command is executed with the current working directory ($PWD) set to the image's WORKDIR.\n\nThe build will be marked as failed if the hook execution fails. It will fail if the script or command return a non-zero exit code, or if there is any other error related to starting the temporary container.\n\nThere are five different ways to configure the hook. As an example, all forms below are equivalent and will execute `rake test --verbose`.\n\n1. Shell script:\n\n\t \"postCommit\": {\n\t \"script\": \"rake test --verbose\",\n\t }\n\n\tThe above is a convenient form which is equivalent to:\n\n\t \"postCommit\": {\n\t \"command\": [\"/bin/sh\", \"-ic\"],\n\t \"args\": [\"rake test --verbose\"]\n\t }\n\n2. A command as the image entrypoint:\n\n\t \"postCommit\": {\n\t \"commit\": [\"rake\", \"test\", \"--verbose\"]\n\t }\n\n\tCommand overrides the image entrypoint in the exec form, as documented in\n\tDocker: https://docs.docker.com/engine/reference/builder/#entrypoint.\n\n3. Pass arguments to the default entrypoint:\n\n\t \"postCommit\": {\n\t\t\t \"args\": [\"rake\", \"test\", \"--verbose\"]\n\t\t }\n\n\t This form is only useful if the image entrypoint can handle arguments.\n\n4. Shell script with arguments:\n\n\t \"postCommit\": {\n\t \"script\": \"rake test $1\",\n\t \"args\": [\"--verbose\"]\n\t }\n\n\tThis form is useful if you need to pass arguments that would otherwise be\n\thard to quote properly in the shell script. In the script, $0 will be\n\t\"/bin/sh\" and $1, $2, etc, are the positional arguments from Args.\n\n5. Command with arguments:\n\n\t \"postCommit\": {\n\t \"command\": [\"rake\", \"test\"],\n\t \"args\": [\"--verbose\"]\n\t }\n\n\tThis form is equivalent to appending the arguments to the Command slice.\n\nIt is invalid to provide both Script and Command simultaneously. If none of the fields are specified, the hook is not executed.",
"command": "command is the command to run. It may not be specified with Script. This might be needed if the image doesn't have `/bin/sh`, or if you do not want to use a shell. In all other cases, using Script might be more convenient.",
"args": "args is a list of arguments that are provided to either Command, Script or the container image's default entrypoint. The arguments are placed immediately after the command to be run.",
"script": "script is a shell script to be run with `/bin/sh -ic`. It may not be specified with Command. Use Script when a shell script is appropriate to execute the post build hook, for example for running unit tests with `rake test`. If you need control over the image entrypoint, or if the image does not have `/bin/sh`, use Command and/or Args. The `-i` flag is needed to support CentOS and RHEL images that use Software Collections (SCL), in order to have the appropriate collections enabled in the shell. E.g., in the Ruby image, this is necessary to make `ruby`, `bundle` and other binaries available in the PATH.",
}
func (BuildPostCommitSpec) SwaggerDoc() map[string]string {
return map_BuildPostCommitSpec
}
var map_BuildRequest = map[string]string{
"": "BuildRequest is the resource used to pass parameters to build generator\n\nCompatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).",
"metadata": "metadata is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
"revision": "revision is the information from the source for a specific repo snapshot.",
"triggeredByImage": "triggeredByImage is the Image that triggered this build.",
"from": "from is the reference to the ImageStreamTag that triggered the build.",
"binary": "binary indicates a request to build from a binary provided to the builder",
"lastVersion": "lastVersion (optional) is the LastVersion of the BuildConfig that was used to generate the build. If the BuildConfig in the generator doesn't match, a build will not be generated.",
"env": "env contains additional environment variables you want to pass into a builder container.",
"triggeredBy": "triggeredBy describes which triggers started the most recent update to the build configuration and contains information about those triggers.",
"dockerStrategyOptions": "DockerStrategyOptions contains additional docker-strategy specific options for the build",
"sourceStrategyOptions": "SourceStrategyOptions contains additional source-strategy specific options for the build",
}
func (BuildRequest) SwaggerDoc() map[string]string {
return map_BuildRequest
}
var map_BuildSource = map[string]string{
"": "BuildSource is the SCM used for the build.",
"type": "type of build input to accept",
"binary": "binary builds accept a binary as their input. The binary is generally assumed to be a tar, gzipped tar, or zip file depending on the strategy. For container image builds, this is the build context and an optional Dockerfile may be specified to override any Dockerfile in the build context. For Source builds, this is assumed to be an archive as described above. For Source and container image builds, if binary.asFile is set the build will receive a directory with a single file. contextDir may be used when an archive is provided. Custom builds will receive this binary as input on STDIN.",
"dockerfile": "dockerfile is the raw contents of a Dockerfile which should be built. When this option is specified, the FROM may be modified based on your strategy base image and additional ENV stanzas from your strategy environment will be added after the FROM, but before the rest of your Dockerfile stanzas. The Dockerfile source type may be used with other options like git - in those cases the Git repo will have any innate Dockerfile replaced in the context dir.",
"git": "git contains optional information about git build source",
"images": "images describes a set of images to be used to provide source for the build",
"contextDir": "contextDir specifies the sub-directory where the source code for the application exists. This allows to have buildable sources in directory other than root of repository.",
"sourceSecret": "sourceSecret is the name of a Secret that would be used for setting up the authentication for cloning private repository. The secret contains valid credentials for remote repository, where the data's key represent the authentication method to be used and value is the base64 encoded credentials. Supported auth methods are: ssh-privatekey.",
"secrets": "secrets represents a list of secrets and their destinations that will be used only for the build.",
"configMaps": "configMaps represents a list of configMaps and their destinations that will be used for the build.",
}
func (BuildSource) SwaggerDoc() map[string]string {
return map_BuildSource
}
var map_BuildSpec = map[string]string{
"": "BuildSpec has the information to represent a build and also additional information about a build",
"triggeredBy": "triggeredBy describes which triggers started the most recent update to the build configuration and contains information about those triggers.",
}
func (BuildSpec) SwaggerDoc() map[string]string {
return map_BuildSpec
}
var map_BuildStatus = map[string]string{
"": "BuildStatus contains the status of a build",
"phase": "phase is the point in the build lifecycle. Possible values are \"New\", \"Pending\", \"Running\", \"Complete\", \"Failed\", \"Error\", and \"Cancelled\".",
"cancelled": "cancelled describes if a cancel event was triggered for the build.",
"reason": "reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.",
"message": "message is a human-readable message indicating details about why the build has this status.",
"startTimestamp": "startTimestamp is a timestamp representing the server time when this Build started running in a Pod. It is represented in RFC3339 form and is in UTC.",
"completionTimestamp": "completionTimestamp is a timestamp representing the server time when this Build was finished, whether that build failed or succeeded. It reflects the time at which the Pod running the Build terminated. It is represented in RFC3339 form and is in UTC.",
"duration": "duration contains time.Duration object describing build time.",
"outputDockerImageReference": "outputDockerImageReference contains a reference to the container image that will be built by this build. Its value is computed from Build.Spec.Output.To, and should include the registry address, so that it can be used to push and pull the image.",
"config": "config is an ObjectReference to the BuildConfig this Build is based on.",
"output": "output describes the container image the build has produced.",
"stages": "stages contains details about each stage that occurs during the build including start time, duration (in milliseconds), and the steps that occured within each stage.",
"logSnippet": "logSnippet is the last few lines of the build log. This value is only set for builds that failed.",
"conditions": "Conditions represents the latest available observations of a build's current state.",
}
func (BuildStatus) SwaggerDoc() map[string]string {
return map_BuildStatus
}
var map_BuildStatusOutput = map[string]string{
"": "BuildStatusOutput contains the status of the built image.",
"to": "to describes the status of the built image being pushed to a registry.",
}
func (BuildStatusOutput) SwaggerDoc() map[string]string {
return map_BuildStatusOutput
}
var map_BuildStatusOutputTo = map[string]string{
"": "BuildStatusOutputTo describes the status of the built image with regards to image registry to which it was supposed to be pushed.",
"imageDigest": "imageDigest is the digest of the built container image. The digest uniquely identifies the image in the registry to which it was pushed.\n\nPlease note that this field may not always be set even if the push completes successfully - e.g. when the registry returns no digest or returns it in a format that the builder doesn't understand.",
}
func (BuildStatusOutputTo) SwaggerDoc() map[string]string {
return map_BuildStatusOutputTo
}
var map_BuildStrategy = map[string]string{
"": "BuildStrategy contains the details of how to perform a build.",
"type": "type is the kind of build strategy.",
"dockerStrategy": "dockerStrategy holds the parameters to the container image build strategy.",
"sourceStrategy": "sourceStrategy holds the parameters to the Source build strategy.",
"customStrategy": "customStrategy holds the parameters to the Custom build strategy",
"jenkinsPipelineStrategy": "JenkinsPipelineStrategy holds the parameters to the Jenkins Pipeline build strategy. Deprecated: use OpenShift Pipelines",
}
func (BuildStrategy) SwaggerDoc() map[string]string {
return map_BuildStrategy
}
var map_BuildTriggerCause = map[string]string{
"": "BuildTriggerCause holds information about a triggered build. It is used for displaying build trigger data for each build and build configuration in oc describe. It is also used to describe which triggers led to the most recent update in the build configuration.",
"message": "message is used to store a human readable message for why the build was triggered. E.g.: \"Manually triggered by user\", \"Configuration change\",etc.",
"genericWebHook": "genericWebHook holds data about a builds generic webhook trigger.",
"githubWebHook": "gitHubWebHook represents data for a GitHub webhook that fired a specific build.",
"imageChangeBuild": "imageChangeBuild stores information about an imagechange event that triggered a new build.",
"gitlabWebHook": "GitLabWebHook represents data for a GitLab webhook that fired a specific build.",
"bitbucketWebHook": "BitbucketWebHook represents data for a Bitbucket webhook that fired a specific build.",
}
func (BuildTriggerCause) SwaggerDoc() map[string]string {
return map_BuildTriggerCause
}
var map_BuildTriggerPolicy = map[string]string{
"": "BuildTriggerPolicy describes a policy for a single trigger that results in a new Build.",
"type": "type is the type of build trigger. Valid values:\n\n- GitHub GitHubWebHookBuildTriggerType represents a trigger that launches builds on GitHub webhook invocations\n\n- Generic GenericWebHookBuildTriggerType represents a trigger that launches builds on generic webhook invocations\n\n- GitLab GitLabWebHookBuildTriggerType represents a trigger that launches builds on GitLab webhook invocations\n\n- Bitbucket BitbucketWebHookBuildTriggerType represents a trigger that launches builds on Bitbucket webhook invocations\n\n- ImageChange ImageChangeBuildTriggerType represents a trigger that launches builds on availability of a new version of an image\n\n- ConfigChange ConfigChangeBuildTriggerType will trigger a build on an initial build config creation WARNING: In the future the behavior will change to trigger a build on any config change",
"github": "github contains the parameters for a GitHub webhook type of trigger",
"generic": "generic contains the parameters for a Generic webhook type of trigger",
"imageChange": "imageChange contains parameters for an ImageChange type of trigger",
"gitlab": "GitLabWebHook contains the parameters for a GitLab webhook type of trigger",
"bitbucket": "BitbucketWebHook contains the parameters for a Bitbucket webhook type of trigger",
}
func (BuildTriggerPolicy) SwaggerDoc() map[string]string {
return map_BuildTriggerPolicy
}
var map_BuildVolume = map[string]string{
"": "BuildVolume describes a volume that is made available to build pods, such that it can be mounted into buildah's runtime environment. Only a subset of Kubernetes Volume sources are supported.",
"name": "name is a unique identifier for this BuildVolume. It must conform to the Kubernetes DNS label standard and be unique within the pod. Names that collide with those added by the build controller will result in a failed build with an error message detailing which name caused the error. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"source": "source represents the location and type of the mounted volume.",
"mounts": "mounts represents the location of the volume in the image build container",
}
func (BuildVolume) SwaggerDoc() map[string]string {
return map_BuildVolume
}
var map_BuildVolumeMount = map[string]string{
"": "BuildVolumeMount describes the mounting of a Volume within buildah's runtime environment.",
"destinationPath": "destinationPath is the path within the buildah runtime environment at which the volume should be mounted. The transient mount within the build image and the backing volume will both be mounted read only. Must be an absolute path, must not contain '..' or ':', and must not collide with a destination path generated by the builder process Paths that collide with those added by the build controller will result in a failed build with an error message detailing which path caused the error.",
}
func (BuildVolumeMount) SwaggerDoc() map[string]string {
return map_BuildVolumeMount
}
var map_BuildVolumeSource = map[string]string{
"": "BuildVolumeSource represents the source of a volume to mount Only one of its supported types may be specified at any given time.",
"type": "type is the BuildVolumeSourceType for the volume source. Type must match the populated volume source. Valid types are: Secret, ConfigMap",
"secret": "secret represents a Secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret",
"configMap": "configMap represents a ConfigMap that should populate this volume",
"csi": "csi represents ephemeral storage provided by external CSI drivers which support this capability",
}
func (BuildVolumeSource) SwaggerDoc() map[string]string {
return map_BuildVolumeSource
}
var map_CommonSpec = map[string]string{
"": "CommonSpec encapsulates all the inputs necessary to represent a build.",
"serviceAccount": "serviceAccount is the name of the ServiceAccount to use to run the pod created by this build. The pod will be allowed to use secrets referenced by the ServiceAccount",
"source": "source describes the SCM in use.",
"revision": "revision is the information from the source for a specific repo snapshot. This is optional.",
"strategy": "strategy defines how to perform a build.",
"output": "output describes the container image the Strategy should produce.",
"resources": "resources computes resource requirements to execute the build.",
"postCommit": "postCommit is a build hook executed after the build output image is committed, before it is pushed to a registry.",
"completionDeadlineSeconds": "completionDeadlineSeconds is an optional duration in seconds, counted from the time when a build pod gets scheduled in the system, that the build may be active on a node before the system actively tries to terminate the build; value must be positive integer",
"nodeSelector": "nodeSelector is a selector which must be true for the build pod to fit on a node If nil, it can be overridden by default build nodeselector values for the cluster. If set to an empty map or a map with any values, default build nodeselector values are ignored.",
"mountTrustedCA": "mountTrustedCA bind mounts the cluster's trusted certificate authorities, as defined in the cluster's proxy configuration, into the build. This lets processes within a build trust components signed by custom PKI certificate authorities, such as private artifact repositories and HTTPS proxies.\n\nWhen this field is set to true, the contents of `/etc/pki/ca-trust` within the build are managed by the build container, and any changes to this directory or its subdirectories (for example - within a Dockerfile `RUN` instruction) are not persisted in the build's output image.",
}
func (CommonSpec) SwaggerDoc() map[string]string {
return map_CommonSpec
}
var map_CommonWebHookCause = map[string]string{
"": "CommonWebHookCause factors out the identical format of these webhook causes into struct so we can share it in the specific causes; it is too late for GitHub and Generic but we can leverage this pattern with GitLab and Bitbucket.",
"revision": "Revision is the git source revision information of the trigger.",
"secret": "Secret is the obfuscated webhook secret that triggered a build.",
}
func (CommonWebHookCause) SwaggerDoc() map[string]string {
return map_CommonWebHookCause
}
var map_ConfigMapBuildSource = map[string]string{
"": "ConfigMapBuildSource describes a configmap and its destination directory that will be used only at the build time. The content of the configmap referenced here will be copied into the destination directory instead of mounting.",
"configMap": "configMap is a reference to an existing configmap that you want to use in your build.",
"destinationDir": "destinationDir is the directory where the files from the configmap should be available for the build time. For the Source build strategy, these will be injected into a container where the assemble script runs. For the container image build strategy, these will be copied into the build directory, where the Dockerfile is located, so users can ADD or COPY them during container image build.",
}
func (ConfigMapBuildSource) SwaggerDoc() map[string]string {
return map_ConfigMapBuildSource
}
var map_CustomBuildStrategy = map[string]string{
"": "CustomBuildStrategy defines input parameters specific to Custom build.",
"from": "from is reference to an DockerImage, ImageStreamTag, or ImageStreamImage from which the container image should be pulled",
"pullSecret": "pullSecret is the name of a Secret that would be used for setting up the authentication for pulling the container images from the private Docker registries",
"env": "env contains additional environment variables you want to pass into a builder container.",
"exposeDockerSocket": "exposeDockerSocket will allow running Docker commands (and build container images) from inside the container.",
"forcePull": "forcePull describes if the controller should configure the build pod to always pull the images for the builder or only pull if it is not present locally",
"secrets": "secrets is a list of additional secrets that will be included in the build pod",
"buildAPIVersion": "buildAPIVersion is the requested API version for the Build object serialized and passed to the custom builder",
}
func (CustomBuildStrategy) SwaggerDoc() map[string]string {
return map_CustomBuildStrategy
}
var map_DockerBuildStrategy = map[string]string{
"": "DockerBuildStrategy defines input parameters specific to container image build.",
"from": "from is a reference to an DockerImage, ImageStreamTag, or ImageStreamImage which overrides the FROM image in the Dockerfile for the build. If the Dockerfile uses multi-stage builds, this will replace the image in the last FROM directive of the file.",
"pullSecret": "pullSecret is the name of a Secret that would be used for setting up the authentication for pulling the container images from the private Docker registries",
"noCache": "noCache if set to true indicates that the container image build must be executed with the --no-cache=true flag",
"env": "env contains additional environment variables you want to pass into a builder container.",
"forcePull": "forcePull describes if the builder should pull the images from registry prior to building.",
"dockerfilePath": "dockerfilePath is the path of the Dockerfile that will be used to build the container image, relative to the root of the context (contextDir). Defaults to `Dockerfile` if unset.",
"buildArgs": "buildArgs contains build arguments that will be resolved in the Dockerfile. See https://docs.docker.com/engine/reference/builder/#/arg for more details. NOTE: Only the 'name' and 'value' fields are supported. Any settings on the 'valueFrom' field are ignored.",
"imageOptimizationPolicy": "imageOptimizationPolicy describes what optimizations the system can use when building images to reduce the final size or time spent building the image. The default policy is 'None' which means the final build image will be equivalent to an image created by the container image build API. The experimental policy 'SkipLayers' will avoid commiting new layers in between each image step, and will fail if the Dockerfile cannot provide compatibility with the 'None' policy. An additional experimental policy 'SkipLayersAndWarn' is the same as 'SkipLayers' but simply warns if compatibility cannot be preserved.",
"volumes": "volumes is a list of input volumes that can be mounted into the builds runtime environment. Only a subset of Kubernetes Volume sources are supported by builds. More info: https://kubernetes.io/docs/concepts/storage/volumes",
}
func (DockerBuildStrategy) SwaggerDoc() map[string]string {
return map_DockerBuildStrategy
}
var map_DockerStrategyOptions = map[string]string{
"": "DockerStrategyOptions contains extra strategy options for container image builds",
"buildArgs": "Args contains any build arguments that are to be passed to Docker. See https://docs.docker.com/engine/reference/builder/#/arg for more details",
"noCache": "noCache overrides the docker-strategy noCache option in the build config",
}
func (DockerStrategyOptions) SwaggerDoc() map[string]string {
return map_DockerStrategyOptions
}
var map_GenericWebHookCause = map[string]string{
"": "GenericWebHookCause holds information about a generic WebHook that triggered a build.",
"revision": "revision is an optional field that stores the git source revision information of the generic webhook trigger when it is available.",
"secret": "secret is the obfuscated webhook secret that triggered a build.",
}
func (GenericWebHookCause) SwaggerDoc() map[string]string {
return map_GenericWebHookCause
}
var map_GenericWebHookEvent = map[string]string{
"": "GenericWebHookEvent is the payload expected for a generic webhook post",
"type": "type is the type of source repository",
"git": "git is the git information if the Type is BuildSourceGit",
"env": "env contains additional environment variables you want to pass into a builder container. ValueFrom is not supported.",
"dockerStrategyOptions": "DockerStrategyOptions contains additional docker-strategy specific options for the build",
}
func (GenericWebHookEvent) SwaggerDoc() map[string]string {
return map_GenericWebHookEvent
}
var map_GitBuildSource = map[string]string{
"": "GitBuildSource defines the parameters of a Git SCM",
"uri": "uri points to the source that will be built. The structure of the source will depend on the type of build to run",
"ref": "ref is the branch/tag/ref to build.",
}
func (GitBuildSource) SwaggerDoc() map[string]string {
return map_GitBuildSource
}
var map_GitHubWebHookCause = map[string]string{
"": "GitHubWebHookCause has information about a GitHub webhook that triggered a build.",
"revision": "revision is the git revision information of the trigger.",
"secret": "secret is the obfuscated webhook secret that triggered a build.",
}
func (GitHubWebHookCause) SwaggerDoc() map[string]string {
return map_GitHubWebHookCause
}
var map_GitInfo = map[string]string{
"": "GitInfo is the aggregated git information for a generic webhook post",
"refs": "Refs is a list of GitRefs for the provided repo - generally sent when used from a post-receive hook. This field is optional and is used when sending multiple refs",
}
func (GitInfo) SwaggerDoc() map[string]string {
return map_GitInfo
}
var map_GitLabWebHookCause = map[string]string{
"": "GitLabWebHookCause has information about a GitLab webhook that triggered a build.",
}
func (GitLabWebHookCause) SwaggerDoc() map[string]string {
return map_GitLabWebHookCause
}
var map_GitRefInfo = map[string]string{
"": "GitRefInfo is a single ref",
}
func (GitRefInfo) SwaggerDoc() map[string]string {
return map_GitRefInfo
}
var map_GitSourceRevision = map[string]string{
"": "GitSourceRevision is the commit information from a git source for a build",
"commit": "commit is the commit hash identifying a specific commit",
"author": "author is the author of a specific commit",
"committer": "committer is the committer of a specific commit",
"message": "message is the description of a specific commit",
}
func (GitSourceRevision) SwaggerDoc() map[string]string {
return map_GitSourceRevision
}
var map_ImageChangeCause = map[string]string{
"": "ImageChangeCause contains information about the image that triggered a build",
"imageID": "imageID is the ID of the image that triggered a new build.",
"fromRef": "fromRef contains detailed information about an image that triggered a build.",
}
func (ImageChangeCause) SwaggerDoc() map[string]string {
return map_ImageChangeCause
}
var map_ImageChangeTrigger = map[string]string{
"": "ImageChangeTrigger allows builds to be triggered when an ImageStream changes",
"lastTriggeredImageID": "lastTriggeredImageID is used internally by the ImageChangeController to save last used image ID for build This field is deprecated and will be removed in a future release. Deprecated",
"from": "from is a reference to an ImageStreamTag that will trigger a build when updated It is optional. If no From is specified, the From image from the build strategy will be used. Only one ImageChangeTrigger with an empty From reference is allowed in a build configuration.",
"paused": "paused is true if this trigger is temporarily disabled. Optional.",
}
func (ImageChangeTrigger) SwaggerDoc() map[string]string {
return map_ImageChangeTrigger
}
var map_ImageChangeTriggerStatus = map[string]string{
"": "ImageChangeTriggerStatus tracks the latest resolved status of the associated ImageChangeTrigger policy specified in the BuildConfigSpec.Triggers struct.",
"lastTriggeredImageID": "lastTriggeredImageID represents the sha/id of the ImageStreamTag when a Build for this BuildConfig was started. The lastTriggeredImageID is updated each time a Build for this BuildConfig is started, even if this ImageStreamTag is not the reason the Build is started.",
"from": "from is the ImageStreamTag that is the source of the trigger.",
"lastTriggerTime": "lastTriggerTime is the last time this particular ImageStreamTag triggered a Build to start. This field is only updated when this trigger specifically started a Build.",
}
func (ImageChangeTriggerStatus) SwaggerDoc() map[string]string {
return map_ImageChangeTriggerStatus
}
var map_ImageLabel = map[string]string{
"": "ImageLabel represents a label applied to the resulting image.",
"name": "name defines the name of the label. It must have non-zero length.",
"value": "value defines the literal value of the label.",
}
func (ImageLabel) SwaggerDoc() map[string]string {
return map_ImageLabel
}
var map_ImageSource = map[string]string{
"": "ImageSource is used to describe build source that will be extracted from an image or used during a multi stage build. A reference of type ImageStreamTag, ImageStreamImage or DockerImage may be used. A pull secret can be specified to pull the image from an external registry or override the default service account secret if pulling from the internal registry. Image sources can either be used to extract content from an image and place it into the build context along with the repository source, or used directly during a multi-stage container image build to allow content to be copied without overwriting the contents of the repository source (see the 'paths' and 'as' fields).",
"from": "from is a reference to an ImageStreamTag, ImageStreamImage, or DockerImage to copy source from.",
"as": "A list of image names that this source will be used in place of during a multi-stage container image build. For instance, a Dockerfile that uses \"COPY --from=nginx:latest\" will first check for an image source that has \"nginx:latest\" in this field before attempting to pull directly. If the Dockerfile does not reference an image source it is ignored. This field and paths may both be set, in which case the contents will be used twice.",
"paths": "paths is a list of source and destination paths to copy from the image. This content will be copied into the build context prior to starting the build. If no paths are set, the build context will not be altered.",
"pullSecret": "pullSecret is a reference to a secret to be used to pull the image from a registry If the image is pulled from the OpenShift registry, this field does not need to be set.",
}
func (ImageSource) SwaggerDoc() map[string]string {
return map_ImageSource
}
var map_ImageSourcePath = map[string]string{
"": "ImageSourcePath describes a path to be copied from a source image and its destination within the build directory.",
"sourcePath": "sourcePath is the absolute path of the file or directory inside the image to copy to the build directory. If the source path ends in /. then the content of the directory will be copied, but the directory itself will not be created at the destination.",
"destinationDir": "destinationDir is the relative directory within the build directory where files copied from the image are placed.",
}
func (ImageSourcePath) SwaggerDoc() map[string]string {
return map_ImageSourcePath
}
var map_ImageStreamTagReference = map[string]string{
"": "ImageStreamTagReference references the ImageStreamTag in an image change trigger by namespace and name.",
"namespace": "namespace is the namespace where the ImageStreamTag for an ImageChangeTrigger is located",
"name": "name is the name of the ImageStreamTag for an ImageChangeTrigger",
}
func (ImageStreamTagReference) SwaggerDoc() map[string]string {
return map_ImageStreamTagReference
}
var map_JenkinsPipelineBuildStrategy = map[string]string{
"": "JenkinsPipelineBuildStrategy holds parameters specific to a Jenkins Pipeline build. Deprecated: use OpenShift Pipelines",
"jenkinsfilePath": "JenkinsfilePath is the optional path of the Jenkinsfile that will be used to configure the pipeline relative to the root of the context (contextDir). If both JenkinsfilePath & Jenkinsfile are both not specified, this defaults to Jenkinsfile in the root of the specified contextDir.",
"jenkinsfile": "Jenkinsfile defines the optional raw contents of a Jenkinsfile which defines a Jenkins pipeline build.",
"env": "env contains additional environment variables you want to pass into a build pipeline.",
}
func (JenkinsPipelineBuildStrategy) SwaggerDoc() map[string]string {
return map_JenkinsPipelineBuildStrategy
}
var map_ProxyConfig = map[string]string{
"": "ProxyConfig defines what proxies to use for an operation",
"httpProxy": "httpProxy is a proxy used to reach the git repository over http",
"httpsProxy": "httpsProxy is a proxy used to reach the git repository over https",
"noProxy": "noProxy is the list of domains for which the proxy should not be used",
}
func (ProxyConfig) SwaggerDoc() map[string]string {
return map_ProxyConfig
}
var map_SecretBuildSource = map[string]string{
"": "SecretBuildSource describes a secret and its destination directory that will be used only at the build time. The content of the secret referenced here will be copied into the destination directory instead of mounting.",
"secret": "secret is a reference to an existing secret that you want to use in your build.",
"destinationDir": "destinationDir is the directory where the files from the secret should be available for the build time. For the Source build strategy, these will be injected into a container where the assemble script runs. Later, when the script finishes, all files injected will be truncated to zero length. For the container image build strategy, these will be copied into the build directory, where the Dockerfile is located, so users can ADD or COPY them during container image build.",
}
func (SecretBuildSource) SwaggerDoc() map[string]string {
return map_SecretBuildSource
}
var map_SecretLocalReference = map[string]string{
"": "SecretLocalReference contains information that points to the local secret being used",
"name": "Name is the name of the resource in the same namespace being referenced",
}
func (SecretLocalReference) SwaggerDoc() map[string]string {
return map_SecretLocalReference
}
var map_SecretSpec = map[string]string{
"": "SecretSpec specifies a secret to be included in a build pod and its corresponding mount point",
"secretSource": "secretSource is a reference to the secret",
"mountPath": "mountPath is the path at which to mount the secret",
}
func (SecretSpec) SwaggerDoc() map[string]string {
return map_SecretSpec
}
var map_SourceBuildStrategy = map[string]string{
"": "SourceBuildStrategy defines input parameters specific to an Source build.",
"from": "from is reference to an DockerImage, ImageStreamTag, or ImageStreamImage from which the container image should be pulled",
"pullSecret": "pullSecret is the name of a Secret that would be used for setting up the authentication for pulling the container images from the private Docker registries",
"env": "env contains additional environment variables you want to pass into a builder container.",
"scripts": "scripts is the location of Source scripts",
"incremental": "incremental flag forces the Source build to do incremental builds if true.",
"forcePull": "forcePull describes if the builder should pull the images from registry prior to building.",
"volumes": "volumes is a list of input volumes that can be mounted into the builds runtime environment. Only a subset of Kubernetes Volume sources are supported by builds. More info: https://kubernetes.io/docs/concepts/storage/volumes",
}
func (SourceBuildStrategy) SwaggerDoc() map[string]string {
return map_SourceBuildStrategy
}
var map_SourceControlUser = map[string]string{
"": "SourceControlUser defines the identity of a user of source control",
"name": "name of the source control user",
"email": "email of the source control user",
}
func (SourceControlUser) SwaggerDoc() map[string]string {
return map_SourceControlUser
}
var map_SourceRevision = map[string]string{
"": "SourceRevision is the revision or commit information from the source for the build",
"type": "type of the build source, may be one of 'Source', 'Dockerfile', 'Binary', or 'Images'",
"git": "Git contains information about git-based build source",
}
func (SourceRevision) SwaggerDoc() map[string]string {
return map_SourceRevision
}
var map_SourceStrategyOptions = map[string]string{
"": "SourceStrategyOptions contains extra strategy options for Source builds",
"incremental": "incremental overrides the source-strategy incremental option in the build config",
}
func (SourceStrategyOptions) SwaggerDoc() map[string]string {
return map_SourceStrategyOptions
}
var map_StageInfo = map[string]string{
"": "StageInfo contains details about a build stage.",
"name": "name is a unique identifier for each build stage that occurs.",
"startTime": "startTime is a timestamp representing the server time when this Stage started. It is represented in RFC3339 form and is in UTC.",
"durationMilliseconds": "durationMilliseconds identifies how long the stage took to complete in milliseconds. Note: the duration of a stage can exceed the sum of the duration of the steps within the stage as not all actions are accounted for in explicit build steps.",
"steps": "steps contains details about each step that occurs during a build stage including start time and duration in milliseconds.",
}
func (StageInfo) SwaggerDoc() map[string]string {
return map_StageInfo
}
var map_StepInfo = map[string]string{
"": "StepInfo contains details about a build step.",
"name": "name is a unique identifier for each build step.",
"startTime": "startTime is a timestamp representing the server time when this Step started. it is represented in RFC3339 form and is in UTC.",
"durationMilliseconds": "durationMilliseconds identifies how long the step took to complete in milliseconds.",
}
func (StepInfo) SwaggerDoc() map[string]string {
return map_StepInfo
}
var map_WebHookTrigger = map[string]string{
"": "WebHookTrigger is a trigger that gets invoked using a webhook type of post",
"secret": "secret used to validate requests. Deprecated: use SecretReference instead.",
"allowEnv": "allowEnv determines whether the webhook can set environment variables; can only be set to true for GenericWebHook.",
"secretReference": "secretReference is a reference to a secret in the same namespace, containing the value to be validated when the webhook is invoked. The secret being referenced must contain a key named \"WebHookSecretKey\", the value of which will be checked against the value supplied in the webhook invocation.",
}
func (WebHookTrigger) SwaggerDoc() map[string]string {
return map_WebHookTrigger
}
// AUTO-GENERATED FUNCTIONS END HERE