We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f3f35f commit b0efd9aCopy full SHA for b0efd9a
pkg/system/phase2_creating.go
@@ -479,7 +479,11 @@ func (r *Reconciler) setDesiredCoreEnv(c *corev1.Container) {
479
}
480
481
if r.NooBaa.Spec.EnvVariablesOverride != nil && r.NooBaa.Spec.EnvVariablesOverride.Core != nil {
482
- util.MergeEnvArrays(&c.Env, &r.NooBaa.Spec.EnvVariablesOverride.Core);
+ // util.MergeEnvArrays will keep variables of the first array provided in
483
+ // arguments in case of a conflict, so we provide the override array first
484
+ // and then set the container Env array to the resulting merged array
485
+ util.MergeEnvArrays(&r.NooBaa.Spec.EnvVariablesOverride.Core, &c.Env);
486
+ c.Env = r.NooBaa.Spec.EnvVariablesOverride.Core;
487
488
489
0 commit comments