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-stackapplies fixed raw paths of the environment tree withkubectl apply -f(src/devops_cli/commands/k8s/stack_lifecycle.py:278-312,MANIFESTS_BY_STACK: the NetworkPolicies of argocd, argo-workflows, otel, llm, logging and gitea, the 3 Valkey files, portkey, the ingress routes and agents; used at:1204and:1257).- The infra plan rebuilds some of them from infra components and bases at tags: the default perimeters (dan-petty/homelab#87), the Open WebUI Valkey (dan-petty/homelab#88) and the Argo CD NetworkPolicy (dan-petty/homelab#94). A fixed file is then missing or holds only part of the objects. feat(k8s): take deploy-stack value files from the Applications #6680 covers only the Helm value files.
devops_cli.k8s.app_render.render_path_sourcealready builds a path source of an Argo CD Application with Kustomize, asdevops k8s image-pinsbuilds it. It fetches a source of another public repository at its revision, and a dry run fetches nothing (app_render.pydocstring).src/devops_cli/commands/ai_runs.py:127namesk8s/llm/valkey-runs.yaml, which this plan does not change.
Proposed remedy
Reuse app_render. deploy-stack applies the builds of the path sources of the Applications of each stack, in place of the fixed lists of MANIFESTS_BY_STACK. One table maps each stack to its Applications. PRODUCT_MANIFESTS_BY_STACK does not change.
- Check the premise first: if the build of an Application holds objects that the fixed list leaves out, write the difference in the PR and keep the fixed list for that stack.
- Write the tests first, with a fixture Application and a
tmp_pathtree that uses a local Kustomize component.
Acceptance criteria
- A new test fails on main and passes on the branch: a fixture path source with a component gives the objects of its build.
- On the current tree,
uv run devops k8s deploy-stack --dry-runprints the same objects (kind and name) for each stack as on main, or the PR lists each difference with its reason. -
uv run devops ci --check --only test,lint,typecheckpasses.
Person steps
None.
Dependencies
None. It lands before dan-petty/homelab#87, dan-petty/homelab#88 and dan-petty/homelab#94.
Alternatives check of 2026-11-21: none.
Tool: none found.
Reason: Searches returned only unrelated web-platform pages and named no tool. The need is an internal refactor of devops-cli's deploy-stack to reuse its own app_render path-source builds, which no external tool covers.
Lacks:
- Reuse of app_render path-source builds in deploy-stack
- One per-stack table mapping stacks to Applications
- Dry-run parity of objects with the fixed manifest lists
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 to read from Applications, but the candidate covers raw manifests while 6680 covers Helm value files.devops-cli-service commentedon Nov 21, 2026
The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.
Searches (6)
Searches run:
docs(openspec): plan deploy-stack builds of the Application path sour…
feat(k8s): apply the builds of the Application path sources in deploy…
docs(k8s): state the Application builds of deploy-stack (#6681)
15 remaining items
docs(openspec): plan deploy-stack builds of the Application path sour…
feat(k8s): apply the builds of the Application path sources in deploy…
docs(k8s): state the Application builds of deploy-stack (#6681)
docs(openspec): archive the deploy-stack Application builds change (#…
feat(k8s): build no folder with a remote target in the stack dry runs (…
feat(k8s): build the dry-run folders with no route to the network (#6681
fix(k8s): state the loopback downloads of the stack dry runs (#6681)
test(k8s): give the offline build test room for a loaded runner (#6681)
devops-cli-service commentedon Nov 22, 2026
Released in v0.192.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.192.0
devops-cli-service commentedon Nov 22, 2026
Live since 2026-11-22 03:31 UTC