Skip to content

Commit 58c7b04

Browse files
authored
Update deploy_handlers.py (#112)
1 parent 3fb1efa commit 58c7b04

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,10 @@ def merge_deployment_configs(
260260
helm_values["global"]["imagePullSecrets"] = pull_secrets
261261
helm_values["imagePullSecrets"] = pull_secrets
262262

263-
# Add dynamic ACP command based on manifest configuration
264-
add_acp_command_to_helm_values(helm_values, manifest, manifest_path)
263+
# Add dynamic ACP command based on manifest configuration if command is not set in helm overrides
264+
helm_overrides_command = agent_env_config and agent_env_config.helm_overrides and "command" in agent_env_config.helm_overrides
265+
if not helm_overrides_command:
266+
add_acp_command_to_helm_values(helm_values, manifest, manifest_path)
265267

266268
print("Deploying with the following helm values: ", helm_values)
267269
return helm_values

0 commit comments

Comments
 (0)