Skip to content

Commit fed5259

Browse files
committed
fix
1 parent 9f30852 commit fed5259

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,12 @@ def merge_deployment_configs(
176176
if TEMPORAL_WORKER_KEY in helm_values:
177177
helm_values[TEMPORAL_WORKER_KEY]["env"] = agent_config.env
178178

179-
encoded_principal = _encode_principal_context(manifest)
180-
if encoded_principal:
181-
helm_values["env"][EnvVarKeys.AUTH_PRINCIPAL_B64] = encoded_principal
179+
# Add auth principal env var if manifest principal is set
180+
encoded_principal = _encode_principal_context(manifest)
181+
if encoded_principal:
182+
if "env" not in helm_values:
183+
helm_values["env"] = {}
184+
helm_values["env"][EnvVarKeys.AUTH_PRINCIPAL_B64] = encoded_principal
182185

183186
if manifest.deployment and manifest.deployment.imagePullSecrets:
184187
pull_secrets = [

0 commit comments

Comments
 (0)