Skip to content

Commit d390a73

Browse files
committed
deploy/run env var
1 parent 1fd4443 commit d390a73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/agentex/lib/cli/handlers/deploy_handlers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,12 @@ def merge_deployment_configs(
165165
helm_values[TEMPORAL_WORKER_KEY]["secretEnvVars"] = secret_env_vars
166166

167167
# Set the agent_config env vars first to the helm values and so then it can be overriden by the cluster config
168-
encoded_principal = _encode_principal_context(manifest)
169168
if agent_config.env:
170169
helm_values["env"] = agent_config.env
171170
if TEMPORAL_WORKER_KEY in helm_values:
172171
helm_values[TEMPORAL_WORKER_KEY]["env"] = agent_config.env
172+
173+
encoded_principal = _encode_principal_context(manifest)
173174
if encoded_principal:
174175
helm_values["env"][EnvVarKeys.AUTH_PRINCIPAL_B64] = encoded_principal
175176

0 commit comments

Comments
 (0)