Repository navigation
Closed
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard workscope/k8sKubernetes commands, Helm charts, pods, services, and policiessource/agentFiled by an agenttype/featureType feature: a new functionvalue/mediumValue Medium
Description
Problem
Checked at devops-cli main 4ff4b7c.
deploy-stackinstalls each Helm release with a fixed list of values files of the environment tree (src/devops_cli/commands/k8s/stack_lifecycle.py:129,HELM_RELEASES_BY_STACK, for exampleargocd/values.yamlandcert-manager/values.yaml). It reads only the chart version from the Argo CD Applications (chart_versionsofsrc/devops_cli/k8s/app_sources.py).- The infra plan puts a values template of dan-petty/infra before the environment values in an Application:
$infra/helm/<chart>/values.yamlat a tag, then$values/...(dan-petty/homelab#89, dan-petty/homelab#90, dan-petty/homelab#93, dan-petty/homelab#94, dan-petty/homelab#91, dan-petty/homelab#92). A bootstrap with only the fixed file then installs a release that differs from the one that Argo CD syncs. SourceTrees.value_file(app_sources.py:125) already resolves a$<ref>/<path>value file of any source, other public repositories included.argocd_gate.py:129andimage_pins.py:222use it;app_render.pyusesSourceTreesfor path sources.
Proposed remedy
Reuse SourceTrees. deploy-stack takes the valueFiles of the Application of each release, in their order, and resolves each with SourceTrees.value_file. The list of values files then has one place, the Application. Write the tests first, with a fixture Application that has a chart source, an infra ref and a values ref.
Acceptance criteria
- A new test fails on main and passes on the branch: the fixture gives
--values <infra file> --values <environment file>in that order. - On the current tree,
uv run devops k8s deploy-stack --dry-runprints the same helm commands as on main. -
uv run devops ci --check --only test,lint,typecheckpasses.
Person steps
None.
Dependencies
None. It lands before dan-petty/homelab#89.
Metadata
Metadata
Assignees
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard workscope/k8sKubernetes commands, Helm charts, pods, services, and policiessource/agentFiled by an agenttype/featureType feature: a new functionvalue/mediumValue Medium
Activity
dan-petty commentedon Nov 21, 2026
Both change deploy-stack Helm release handling, but #2469 adds dry-run output detail while this item changes the source of the values file list.devops-cli-service commentedon Nov 21, 2026
Released in v0.190.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.190.0
devops-cli-service commentedon Nov 21, 2026
Live since 2026-11-21 23:18 UTC