Gc Trait

The GC Trait garbage-collects all resources that are no longer necessary upon integration updates.

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

Configuration

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

kamel run --trait gc.[key]=[value] integration.groovy

The following configuration options are available:

Property Type Description

gc.enabled

bool

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

gc.discovery-cache

github.com/apache/camel-k/pkg/trait.discoveryCacheType

Discovery client cache to be used, either disabled, disk or memory (default memory)