-
Notifications
You must be signed in to change notification settings - Fork 523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect warning about overriding environment variable #887
Comments
I think this warning is coming from here: We check whether we already have the environment variable with the provided name. If absent, we're adding it to EnvVar oldEnvVar = containerEnvVars.stream()
.filter(e -> e.getName().equals(newEnvVar.getName()))
.findFirst().orElse(null);
if (oldEnvVar == null) {
containerEnvVars.add(newEnvVar);
} else if (!newEnvVar.getValue().equals(oldEnvVar.getValue())) {
log.warn(
"Environment variable %s will not be overridden: trying to set the value %s, but its actual value is %s",
newEnvVar.getName(), newEnvVar.getValue(), oldEnvVar.getValue());
} |
… variable Don't log warning about not overriding environment variable when both old and new values are same. Signed-off-by: Rohan Kumar <[email protected]>
… variable Don't log warning about not overriding environment variable when both old and new values are same. Signed-off-by: Rohan Kumar <[email protected]>
… variable Don't log warning about not overriding environment variable when both old and new values are same. Signed-off-by: Rohan Kumar <[email protected]>
Don't log warning about not overriding environment variable when both old and new values are same. Signed-off-by: Rohan Kumar <[email protected]>
Description
Info
mvn -v
) :Kubernetes / Red Hat OpenShift setup and version : k8s 1.21
If it's a bug, how to reproduce : Just adding images with environment vars that can be overriden to resources. Ex.
Sample Reproducer Project : https://github.com/rgordill/customer-service-cache
Other references: It is also shown in this blog: https://www.wildfly.org/news/2021/02/01/Bootable-jar-jkube-clustering-openshift/
The text was updated successfully, but these errors were encountered: