Skip to content

Commit

Permalink
fix(trait): environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
squakez committed May 17, 2024
1 parent 8d54ee2 commit 96bd6ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/trait/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ func (t *environmentTrait) Configure(e *Environment) (bool, *TraitCondition, err
}

func (t *environmentTrait) Apply(e *Environment) error {
envvar.SetVal(&e.EnvVars, envVarCamelKVersion, defaults.Version)
envvar.SetVal(&e.EnvVars, envVarCamelKVersion, e.Integration.Status.Version)
envvar.SetVal(&e.EnvVars, envVarOperatorID, defaults.OperatorID())
if e.Integration != nil {
envvar.SetVal(&e.EnvVars, envVarCamelKIntegration, e.Integration.Name)
}
envvar.SetVal(&e.EnvVars, envVarCamelKRuntimeVersion, e.RuntimeVersion)
envvar.SetVal(&e.EnvVars, envVarCamelKRuntimeVersion, e.Integration.Status.RuntimeVersion)
envvar.SetVal(&e.EnvVars, envVarMountPathConfigMaps, camel.ConfigConfigmapsMountPath)
envvar.SetVal(&e.EnvVars, envVarMountPathSecrets, camel.ConfigSecretsMountPath)

Expand Down

0 comments on commit 96bd6ea

Please sign in to comment.