Skip to content

feat(k8s): take deploy-stack value files from the Applications #6680

Closed

Description

@dan-petty

Problem

Checked at devops-cli main 4ff4b7c.

  • deploy-stack installs 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 example argocd/values.yaml and cert-manager/values.yaml). It reads only the chart version from the Argo CD Applications (chart_versions of src/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.yaml at 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:129 and image_pins.py:222 use it; app_render.py uses SourceTrees for 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-run prints the same helm commands as on main.
  • uv run devops ci --check --only test,lint,typecheck passes.

Person steps

None.

Dependencies

None. It lands before dan-petty/homelab#89.

Activity

  1. added
    type/feature
    scope/k8s
    source/agent
    status/new
    on Nov 21, 2026
  2. dan-petty commented on Nov 21, 2026

    @dan-petty
    OwnerAuthor
  3. added
    value/medium
    effort/medium
    priority/p2-medium
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 21, 2026
  4. removed
    status/in-review
    owner/agent
    on Nov 21, 2026
  5. devops-cli-service commented on Nov 21, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-21 23:18 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2-mediumscope/k8ssource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions