You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2020/02/21 23:38:26 UTC

[camel-k] 01/03: Fix #1205: change the warn message in case of env variables not bound

This is an automated email from the ASF dual-hosted git repository.

nferraro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit b8cd4373c4092a47e404bd268d4bacfaa7327b3e
Author: Nicola Ferraro <ni...@gmail.com>
AuthorDate: Fri Feb 21 09:46:01 2020 +0100

    Fix #1205: change the warn message in case of env variables not bound
---
 pkg/trait/container.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkg/trait/container.go b/pkg/trait/container.go
index 7bd473f..d7f9eca 100644
--- a/pkg/trait/container.go
+++ b/pkg/trait/container.go
@@ -139,9 +139,9 @@ func (t *containerTrait) Apply(e *Environment) error {
 			case env.ValueFrom.FieldRef != nil && env.ValueFrom.FieldRef.FieldPath == "metadata.namespace":
 				envvar.SetVar(&container.Env, corev1.EnvVar{Name: env.Name, Value: e.Integration.Namespace})
 			case env.ValueFrom.FieldRef != nil:
-				t.L.Infof("Environment variable %s uses fieldRef and cannot be set on a Knative service", env.Name)
+				t.L.Infof("Skipping environment variable %s (fieldRef)", env.Name)
 			case env.ValueFrom.ResourceFieldRef != nil:
-				t.L.Infof("Environment variable %s uses resourceFieldRef and cannot be set on a Knative service", env.Name)
+				t.L.Infof("Skipping environment variable %s (resourceFieldRef)", env.Name)
 			default:
 				envvar.SetVar(&container.Env, env)
 			}