Skip to content

Commit

Permalink
feat(api): rename BuildSpec to PipelineSpec
Browse files Browse the repository at this point in the history
Step required to prepare Camel K to manage a generic pipeline

Ref apache#4281
  • Loading branch information
squakez committed May 17, 2023
1 parent af30d2a commit 92ab351
Show file tree
Hide file tree
Showing 79 changed files with 2,249 additions and 1,526 deletions.
14 changes: 7 additions & 7 deletions addons/strimzi/duck/client/internalclientset/fake/register.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions addons/strimzi/duck/client/internalclientset/scheme/register.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

102 changes: 57 additions & 45 deletions config/crd/bases/camel.apache.org_builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,44 +77,8 @@ spec:
metadata:
type: object
spec:
description: BuildSpec defines the Build operation to be executed
description: PipelineSpec defines the Build operation to be executed
properties:
configuration:
description: The configuration that should be used to perform the
Build.
properties:
limitCPU:
description: The maximum amount of CPU required. Only used for
`pod` strategy
type: string
limitMemory:
description: The maximum amount of memory required. Only used
for `pod` strategy
type: string
requestCPU:
description: The minimum amount of CPU required. Only used for
`pod` strategy
type: string
requestMemory:
description: The minimum amount of memory required. Only used
for `pod` strategy
type: string
strategy:
description: the strategy to adopt
enum:
- routine
- pod
type: string
type: object
maxRunningBuilds:
description: the maximum amount of parallel running builds started
by this operator instance
format: int32
type: integer
operatorNamespace:
description: The namespace where to run the builder Pod (must be the
same of the operator in charge of this Build reconciliation).
type: string
tasks:
description: The sequence of Build tasks to be performed as part of
the Build execution.
Expand Down Expand Up @@ -169,14 +133,51 @@ spec:
type: boolean
type: object
builder:
description: a BuilderTask (base task)
description: a BuilderTask, used to generate and package the
project
properties:
baseImage:
description: the base image layer
type: string
buildDir:
description: workspace directory to use
type: string
configuration:
description: The configuration that should be used to perform
the Build.
properties:
limitCPU:
description: The maximum amount of CPU required. Only
used for `pod` strategy
type: string
limitMemory:
description: The maximum amount of memory required.
Only used for `pod` strategy
type: string
operatorNamespace:
description: The namespace where to run the builder
Pod (must be the same of the operator in charge of
this Build reconciliation).
type: string
requestCPU:
description: The minimum amount of CPU required. Only
used for `pod` strategy
type: string
requestMemory:
description: The minimum amount of memory required.
Only used for `pod` strategy
type: string
strategy:
description: the strategy to adopt
enum:
- routine
- pod
type: string
toolImage:
description: The container image to be used to run the
build.
type: string
type: object
dependencies:
description: the list of dependencies to use for this build
items:
Expand Down Expand Up @@ -572,6 +573,20 @@ spec:
type: string
type: array
type: object
custom:
description: UserTask is used to execute any generic custom
operation
properties:
command:
description: the command to execute
type: string
image:
description: the container image to use
type: string
name:
description: name of the task
type: string
type: object
kaniko:
description: a KanikoTask, for Kaniko strategy
properties:
Expand Down Expand Up @@ -678,15 +693,12 @@ spec:
type: object
type: array
timeout:
description: Timeout defines the Build maximum execution duration.
The Build deadline is set to the Build start time plus the Timeout
duration. If the Build deadline is exceeded, the Build context is
canceled, and its phase set to BuildPhaseFailed.
description: Timeout defines the Pipeline maximum execution duration.
The Pipeline deadline is set to the Pipeline start time plus the
Timeout duration. If the Pipeline deadline is exceeded, the Pipeline
context is canceled, and its phase set to BuildPhaseFailed.
format: duration
type: string
toolImage:
description: The container image to be used to run the build.
type: string
type: object
status:
description: BuildStatus defines the observed state of Build
Expand Down
Loading

0 comments on commit 92ab351

Please sign in to comment.