Gitops Trait
The GitOps Trait is used to configure the repository where you want to push a GitOps Kustomize overlay configuration of the Integration or Pipe built. If the trait is enabled but no pull configuration is provided, then, the operator will use the values stored in Integration .spec.git field used to pull the project. When used with a Pipe, the url and secret parameters are required as Pipes do not have a .spec.git fallback.
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 gitops.[key]=[value] --trait gitops.[key2]=[value2] integration.yaml The following configuration options are available:
| Property | Type | Description |
|---|---|---|
|
| Can be used to enable or disable a trait. All traits share this common property. |
|
| the URL of the repository where the project is stored. |
|
| the Kubernetes secret where the Git token is stored. The operator will pick up the first secret key only, whichever the name it is. |
|
| the git branch to check out. |
|
| the git tag to check out. |
|
| the git commit (full SHA) to check out. |
|
| the git branch to push to. If omitted, the operator will push to a new branch named as |
|
| a list of overlays to provide (default {"dev","stag","prod"}). |
|
| a flag (default, false) to overwrite any existing overlay. |
|
| The root path where to store Kustomize overlays (default |
|
| The name used to commit the GitOps changes (default |
|
| The email used to commit the GitOps changes (default |