Skip to content

Commit cd0f10e

Browse files
author
Adriano Santos
committed
fix: correct precedence order of env vars
1 parent 7e0cf53 commit cd0f10e

File tree

1 file changed

+2
-4
lines changed
  • spawn_operator/spawn_operator/lib/spawn_operator/k8s/proxy

1 file changed

+2
-4
lines changed

spawn_operator/spawn_operator/lib/spawn_operator/k8s/proxy/deployment.ex

+2-4
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ defmodule SpawnOperator.K8s.Proxy.Deployment do
276276
actor_host_function_image = Map.get(host_params, "image")
277277

278278
updated_default_envs =
279-
@default_actor_host_function_env ++
280279
[
281280
%{
282281
"name" => "RELEASE_NAME",
@@ -292,7 +291,7 @@ defmodule SpawnOperator.K8s.Proxy.Deployment do
292291
"name" => "ERL_FLAGS",
293292
"value" => flags
294293
}
295-
]
294+
] ++ @default_actor_host_function_env
296295

297296
actor_host_function_envs =
298297
if is_nil(task_actors_config) || List.first(Map.values(task_actors_config)) == %{} do
@@ -356,7 +355,6 @@ defmodule SpawnOperator.K8s.Proxy.Deployment do
356355
actor_host_function_image = Map.get(host_params, "image")
357356

358357
updated_default_envs =
359-
@default_actor_host_function_env ++
360358
[
361359
%{
362360
"name" => "RELEASE_NAME",
@@ -372,7 +370,7 @@ defmodule SpawnOperator.K8s.Proxy.Deployment do
372370
"name" => "ERL_FLAGS",
373371
"value" => flags
374372
}
375-
]
373+
] ++ @default_actor_host_function_env
376374

377375
actor_host_function_envs =
378376
Map.get(host_params, "env", []) ++

0 commit comments

Comments
 (0)