fix(cli): normalize chart-owned agent identity env - #537
Closed
Abdou-Scale wants to merge 2 commits into
Closed
Abdou-Scale wants to merge 2 commits into
Abdou-Scale wants to merge 2 commits into
Conversation
Author
|
Closing because this fix must remain scoped to ips-applications or gps-platform. The implementation will be moved to an approved repository. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AGENT_NAME,WORKFLOW_NAME, andWORKFLOW_TASK_QUEUEcustom env values into the Helm chart globals that own those variablesenvoverrides environment globals, while explicit environment globals override legacy manifest envglobal.agent,global.workflow, andtemporal-workeroverrides before renderingRoot cause
agentex agents deploycould emit the same identity variable twice: once from chart globals and once from manifest/environment custom env. Kubernetes strategic-merge patching then rejected upgrades with a$setElementOrdermismatch, leaving the Reporter rollout unhealthy.Validation
ruff check src/agentex/lib/cli/handlers/deploy_handlers.py tests/lib/cli/test_deploy_handlers.pypytest -o addopts='' -q tests/lib/cli— 88 passed8afe816, replied to, and resolvedTracking
This targets
next, per this repository’s development flow. The Reporter application PR remains the immediate repair; this change prevents recurrence after the updated AgentEx SDK/CLI is released and consumed by deployment automation.The PR appears safe to merge; both earlier findings are addressed.
What we checked:
envvalue has higher priority.DeploymentErrorwhen either identity group is present but is not a mapping.Summary
The deploy command now moves
AGENT_NAME,WORKFLOW_NAME, andWORKFLOW_TASK_QUEUEinto their chart globals and removes them from custom environment lists. It also rejects unsupported identity overrides with guidance on where to set them.Diagram
%%{init: {'theme': 'neutral'}}%% flowchart LR M[Manifest env] --> P[Choose identity value] E[Environment env] --> P G[Environment global] --> P P --> H[Helm global identity] P --> R[Remove identity from custom env]Reviews (2) · Last reviewed commit: "fix(cli): preserve environment identity ..."