File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/agentex/lib/cli/handlers Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff 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 = [
You can’t perform that action at this time.
0 commit comments