Skip to content

Commit

Permalink
feat(#4958): Supporting node selectors for the builder pod
Browse files Browse the repository at this point in the history
  • Loading branch information
lsergio committed Dec 5, 2023
1 parent 2fa4a1a commit 84f0c5b
Show file tree
Hide file tree
Showing 122 changed files with 11,341 additions and 7 deletions.
5 changes: 5 additions & 0 deletions config/crd/bases/camel.apache.org_builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,11 @@ spec:
Pod (must be the same of the operator in charge of
this Build reconciliation).
type: string
nodeSelector:
type: object
description: NodeSelector
additionalProperties:
type: string
orderStrategy:
description: the build order strategy to adopt
enum:
Expand Down
5 changes: 5 additions & 0 deletions config/crd/bases/camel.apache.org_integrations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6457,6 +6457,11 @@ spec:
items:
type: string
type: array
nodeSelector:
additionalProperties:
type: string
description: NodeSelector
type: object
orderStrategy:
default: sequential
description: The build order strategy to use, either `dependencies`,
Expand Down
2 changes: 2 additions & 0 deletions pkg/apis/camel/v1/build_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ type BuildSpec struct {
// the maximum amount of parallel running builds started by this operator instance
// Deprecated: no longer in use in Camel K 2 - maintained for backward compatibility
MaxRunningBuilds int32 `json:"maxRunningBuilds,omitempty"`
// Defines a set of nodes the builder pod is eligible to be scheduled on, based on labels on the node.
NodeSelector map[string]string `property:"node-selector" json:"nodeSelector,omitempty"`
}

// Task represents the abstract task. Only one of the task should be configured to represent the specific task chosen.
Expand Down
2 changes: 2 additions & 0 deletions pkg/apis/camel/v1/trait/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,6 @@ type BuilderTrait struct {
TasksLimitCPU []string `property:"tasks-limit-cpu" json:"tasksLimitCPU,omitempty"`
// A list of limit memory configuration for the specific task with format `<task-name>:<limit-memory-conf>`.
TasksLimitMemory []string `property:"tasks-limit-memory" json:"tasksLimitMemory,omitempty"`
// Defines a set of nodes the builder pod is eligible to be scheduled on, based on labels on the node.
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
}

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

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

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

Loading

0 comments on commit 84f0c5b

Please sign in to comment.