Skip to content

Commit 251dfd9

Browse files
committed
Generated Code and Kubernetes CRD
1 parent 5c5c63d commit 251dfd9

File tree

3 files changed

+327
-37
lines changed

3 files changed

+327
-37
lines changed

deploy/crds/shipwright.io_buildruns.yaml

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,87 @@ spec:
466466
should take to execute.
467467
format: duration
468468
type: string
469+
trigger:
470+
description: Trigger defines the scenarios where a new build should
471+
be triggered.
472+
properties:
473+
secretRef:
474+
description: SecretRef points to a local object carrying the
475+
secret token to validate webhook request.
476+
properties:
477+
name:
478+
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
479+
TODO: Add other useful fields. apiVersion, kind, uid?'
480+
type: string
481+
type: object
482+
when:
483+
description: When the list of scenarios when a new build should
484+
take place.
485+
items:
486+
description: TriggerWhen a given scenario where the webhook
487+
trigger is applicable.
488+
properties:
489+
github:
490+
description: GitHub describes how to trigger builds
491+
based on GitHub (SCM) events.
492+
properties:
493+
branches:
494+
description: Branches slice of branch names where
495+
the event applies.
496+
items:
497+
type: string
498+
type: array
499+
events:
500+
description: Events GitHub event names.
501+
items:
502+
description: GitHubEventName set of WhenGitHub
503+
valid event names.
504+
type: string
505+
minItems: 1
506+
type: array
507+
type: object
508+
image:
509+
description: Image slice of image names where the event
510+
applies.
511+
properties:
512+
names:
513+
description: Names fully qualified image names.
514+
items:
515+
type: string
516+
type: array
517+
type: object
518+
name:
519+
description: Name name or the short description of the
520+
trigger condition.
521+
type: string
522+
objectRef:
523+
description: ObjectRef describes how to match a foreign
524+
resource, either using the name or the label selector,
525+
plus the current resource status.
526+
properties:
527+
name:
528+
description: Name target object name.
529+
type: string
530+
selector:
531+
additionalProperties:
532+
type: string
533+
description: Selector label selector.
534+
type: object
535+
status:
536+
description: Status object status.
537+
items:
538+
type: string
539+
type: array
540+
type: object
541+
type:
542+
description: Type the event type
543+
type: string
544+
required:
545+
- name
546+
- type
547+
type: object
548+
type: array
549+
type: object
469550
volumes:
470551
description: Volumes contains volume Overrides of the BuildStrategy
471552
volumes in case those are allowed to be overridden. Must only
@@ -4190,6 +4271,87 @@ spec:
41904271
should take to execute.
41914272
format: duration
41924273
type: string
4274+
trigger:
4275+
description: Trigger defines the scenarios where a new build should
4276+
be triggered.
4277+
properties:
4278+
secretRef:
4279+
description: SecretRef points to a local object carrying the
4280+
secret token to validate webhook request.
4281+
properties:
4282+
name:
4283+
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
4284+
TODO: Add other useful fields. apiVersion, kind, uid?'
4285+
type: string
4286+
type: object
4287+
when:
4288+
description: When the list of scenarios when a new build should
4289+
take place.
4290+
items:
4291+
description: TriggerWhen a given scenario where the webhook
4292+
trigger is applicable.
4293+
properties:
4294+
github:
4295+
description: GitHub describes how to trigger builds
4296+
based on GitHub (SCM) events.
4297+
properties:
4298+
branches:
4299+
description: Branches slice of branch names where
4300+
the event applies.
4301+
items:
4302+
type: string
4303+
type: array
4304+
events:
4305+
description: Events GitHub event names.
4306+
items:
4307+
description: GitHubEventName set of WhenGitHub
4308+
valid event names.
4309+
type: string
4310+
minItems: 1
4311+
type: array
4312+
type: object
4313+
image:
4314+
description: Image slice of image names where the event
4315+
applies.
4316+
properties:
4317+
names:
4318+
description: Names fully qualified image names.
4319+
items:
4320+
type: string
4321+
type: array
4322+
type: object
4323+
name:
4324+
description: Name name or the short description of the
4325+
trigger condition.
4326+
type: string
4327+
objectRef:
4328+
description: ObjectRef describes how to match a foreign
4329+
resource, either using the name or the label selector,
4330+
plus the current resource status.
4331+
properties:
4332+
name:
4333+
description: Name target object name.
4334+
type: string
4335+
selector:
4336+
additionalProperties:
4337+
type: string
4338+
description: Selector label selector.
4339+
type: object
4340+
status:
4341+
description: Status object status.
4342+
items:
4343+
type: string
4344+
type: array
4345+
type: object
4346+
type:
4347+
description: Type the event type
4348+
type: string
4349+
required:
4350+
- name
4351+
- type
4352+
type: object
4353+
type: array
4354+
type: object
41934355
volumes:
41944356
description: Volumes contains volume Overrides of the BuildStrategy
41954357
volumes in case those are allowed to be overridden. Must only

deploy/crds/shipwright.io_builds.yaml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,87 @@ spec:
444444
should take to execute.
445445
format: duration
446446
type: string
447+
trigger:
448+
description: Trigger defines the scenarios where a new build should
449+
be triggered.
450+
properties:
451+
secretRef:
452+
description: SecretRef points to a local object carrying the secret
453+
token to validate webhook request.
454+
properties:
455+
name:
456+
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
457+
TODO: Add other useful fields. apiVersion, kind, uid?'
458+
type: string
459+
type: object
460+
when:
461+
description: When the list of scenarios when a new build should
462+
take place.
463+
items:
464+
description: TriggerWhen a given scenario where the webhook
465+
trigger is applicable.
466+
properties:
467+
github:
468+
description: GitHub describes how to trigger builds based
469+
on GitHub (SCM) events.
470+
properties:
471+
branches:
472+
description: Branches slice of branch names where the
473+
event applies.
474+
items:
475+
type: string
476+
type: array
477+
events:
478+
description: Events GitHub event names.
479+
items:
480+
description: GitHubEventName set of WhenGitHub valid
481+
event names.
482+
type: string
483+
minItems: 1
484+
type: array
485+
type: object
486+
image:
487+
description: Image slice of image names where the event
488+
applies.
489+
properties:
490+
names:
491+
description: Names fully qualified image names.
492+
items:
493+
type: string
494+
type: array
495+
type: object
496+
name:
497+
description: Name name or the short description of the trigger
498+
condition.
499+
type: string
500+
objectRef:
501+
description: ObjectRef describes how to match a foreign
502+
resource, either using the name or the label selector,
503+
plus the current resource status.
504+
properties:
505+
name:
506+
description: Name target object name.
507+
type: string
508+
selector:
509+
additionalProperties:
510+
type: string
511+
description: Selector label selector.
512+
type: object
513+
status:
514+
description: Status object status.
515+
items:
516+
type: string
517+
type: array
518+
type: object
519+
type:
520+
description: Type the event type
521+
type: string
522+
required:
523+
- name
524+
- type
525+
type: object
526+
type: array
527+
type: object
447528
volumes:
448529
description: Volumes contains volume Overrides of the BuildStrategy
449530
volumes in case those are allowed to be overridden. Must only contain

0 commit comments

Comments
 (0)