Skip to content

feat(k8s): take deploy-stack values files from the Applications - #6700

Merged
dan-petty merged 6 commits into
mainfrom
feat/6680-deploy-stack-application-values
Nov 21, 2026
Merged

dan-petty merged 6 commits into
mainfrom
feat/6680-deploy-stack-application-values

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

devops k8s deploy-stack takes the values files of each Helm release from helm.valueFiles of its Argo CD Application, in their order, and resolves each with SourceTrees.value_file. A values template of another repository, such as $infra/helm/<chart>/values.yaml, is fetched at its targetRevision before the deploy touches the cluster. The rows of HELM_RELEASES_BY_STACK hold no values file, and --product-dir gives none. chart_sources replaces chart_versions.

SourceTrees gets the field dry_run, so the dry run fetches nothing. Its new key details.source_fetches lists each fetch of the real run. On the current tree, the helm commands do not change.

Closes #6680

Change: openspec/changes/archive/2026-11-21-6680-deploy-stack-application-values/

@dan-petty dan-petty added type/feature Type feature: a new function scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 21, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Review points for the owner (the issue has no person steps):

  1. --product-dir no longer changes the values files. The second values file of prometheus (the product alert rules) now comes from the values ref of its Application, as Argo CD reads it. The option still gives the product manifests, the post-Helm files and the ConfigMap template.
  2. deploy-stack reads git config --get remote.origin.url of the checkout of the tree (a local read, also in a dry run). In a checkout whose origin is not the repository of a values ref, the real run fetches that repository, as devops k8s image-pins and the argocd check already do.
  3. The fetch of another repository happens before the Argo CD early return, at the same step as the check of the chart version pin. On an Argo CD-managed cluster it is not used.
  4. The body of deploy_stack is indented one level under the with block of the work folder. git diff -w origin/main... shows the real change.
  5. Acceptance criterion 3 (uv run devops ci --check --only test,lint,typecheck) is left to the required checks of this pull request. Locally: the scoped rows, the tests of the changed files and their callers, mypy of the changed source, and devops ci fail-to-pass --base origin/main (exit 0: the new fixture test fails on the base with KeyError: 'source_fetches' and passes on the head).
  6. Acceptance criterion 2: uv run devops k8s deploy-stack --dry-run and --stack all --no-push-secrets --dry-run give the same helm_commands as on main (24 and 33 commands). The only new key is source_fetches, which is empty.
  7. Pending a person: review the diff in tuicr (tuicr -r origin/main..HEAD).

@dan-petty
dan-petty marked this pull request as ready for review November 21, 2026 22:36
@dan-petty
dan-petty merged commit 11fee3f into main Nov 21, 2026
29 checks passed
@dan-petty
dan-petty deleted the feat/6680-deploy-stack-application-values branch November 21, 2026 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant