gansheer commented on code in PR #5350:
URL: https://github.com/apache/camel-k/pull/5350#discussion_r1559593601
##########
pkg/install/operator.go:
##########
@@ -145,7 +145,9 @@ func OperatorOrCollect(ctx context.Context, cmd
*cobra.Command, c client.Client,
fmt.Fprintln(cmd.ErrOrStderr(),
"Warning: could not parse environment variables!")
}
for i := 0; i <
len(d.Spec.Template.Spec.Containers); i++ {
-
d.Spec.Template.Spec.Containers[i].Env =
append(d.Spec.Template.Spec.Containers[i].Env, envVars...)
+ for _, envVar := range envVars {
+
envvar.SetVar(&d.Spec.Template.Spec.Containers[i].Env, envVar)
Review Comment:
Yes, that's its main point.
https://github.com/apache/camel-k/blob/c5ca3d43b49de8f237a4d527ec106320e95a798a/pkg/util/envvar/envvar.go#L59-L73
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]