Builder Trait

BuilderTrait is internally used to determine the best strategy to build and configure IntegrationKits.

This trait is available in the following profiles: Kubernetes, Knative, OpenShift.

The builder trait is a platform trait: disabling it may compromise the platform functionality.

Configuration

Trait properties can be specified when running any integration with the CLI:

$ kamel run --trait builder.[key]=[value] --trait builder.[key2]=[value2] integration.groovy

The following configuration options are available:

Property Type Description

builder.enabled

bool

Can be used to enable or disable a trait. All traits share this common property.

builder.verbose

bool

Enable verbose logging on build components that support it (e.g. Kaniko build pod).

builder.properties

[]string

A list of properties to be provided to the build task

builder.strategy

string

The strategy to use, either pod or routine (default routine)

builder.request-cpu

string

When using pod strategy, the minimum amount of CPU required by the pod builder.

builder.request-memory

string

When using pod strategy, the minimum amount of memory required by the pod builder.

builder.limit-cpu

string

When using pod strategy, the maximum amount of CPU required by the pod builder.

builder.limit-memory

string

When using pod strategy, the maximum amount of memory required by the pod builder.

builder.tasks

[]string

A list of tasks to be executed (available only when using pod strategy) with format <name>;<container-image>;<container-command>