Repository navigation
Description
Problem
#1281 (3f02ee9) tried to keep homelab values out of this public repository with a gitignored .argocd-source.yaml generator (src/devops_cli/k8s/argocd_source.py, devops k8s argocd-source). Argo CD reads .argocd-source.yaml only from the Git repository at the Application's path: repo-server checks out its own clone and runs git clean -ffdx, so a gitignored copy is never seen [sourced: https://argo-cd.readthedocs.io/en/stable/user-guide/parameters/#store-overrides-in-git; argoproj/argo-cd v3.5.3 reposerver/repository/repository.go, util/git/client.go].
To compensate, #1286-#1289 added kubectl apply of the rendered ConfigMap and Ingresses and a fail-open kubectl patch of the live Applications. Argo CD's self-heal reverts the applied objects, because Git declares them, and nothing stops the cluster app-of-apps from reverting the patches. The branch also tracks a placeholder k8s/devops/configmap.yaml (owner/repo, devops-bot), which the devops Application enforces over the ConfigMap that deploy-stack renders from the active config.
If release/v0.2.28 merged into main as it stands, cluster would retarget every Application to main:
- the
ingressApplication would rewrite every Ingress host to*.example.com, so the routes stop matching; - the
devopsApplication would start roadmap-service on the placeholder config.
Acceptance criteria
- The repository holds no homelab value and no devops-cli ConfigMap.
k8s/devops/configmap.yamlis deleted, gitignored and unlisted, andk8s/devops/configmap.example.yamlstays as the template. The renderer has no placeholder fallback, and AppProjecthomelabignores the ConfigMap among its orphaned resources. -
devops k8s deploy-stackrenders ConfigMapdevops-cli-configfrom the active config and applies it, on native and Argo CD-managed clusters alike. It exits non-zero when rendering or applying fails, and no Argo CD Application owns the ConfigMap.teardown-stack --stack devopsdeletes it. - On an Argo CD-managed cluster,
deploy-stacksets the hostnames derived from the configured domain asspec.source.kustomize.patcheson the Applicationsdevopsandingress.- The hosts come from what each Application renders at its
targetRevision, fetched from itsrepoURL, never from the local checkout.--argocd-revision <ref>stages another revision before a release merges. - Every patch tests the placeholder value before replacing it.
- A failure exits non-zero, and
deploy-stackapplies no Ingress itself.
- The hosts come from what each Application renders at its
-
deploy-stackrenders and derives everything before it writes anything, so an unset setting changes nothing. Its dry run lists the ConfigMap and the overrides, runs nothing, and refuses like the deploy. -
k8s/argocd/bootstrap/cluster.yamlignores/spec/source/kustomizeon those two Applications and syncs withRespectIgnoreDifferences=true, so theclusterapp-of-apps keeps the overrides. - Removed: the
.argocd-source.yamlgenerator,devops k8s argocd-source, the.argocd-source*.yamlgitignore lines and the stdin Ingress applies. No test or test fixture writesk8s/devops/configmap.yaml. -
k8s/README.mdexplains which values are supplied at deploy time, which stack supplies each one, the bootstrap and recovery steps, and the release-merge steps. - (person-run) Right before the release merges, run
uv run devops k8s deploy-stack --stack devops --argocd-revision release/v0.2.28. After the merge, wait for theservice:v0.2.28image, then restart roadmap-service and check the Ingress hosts and thedevops-cli-configConfigMap. The task file lists the commands. -
changelog.d/<n>.mdrecords the change;CHANGELOG.mdanddocs/ROADMAP.mdare not edited. -
uv run devops cipasses.
Key questions
- Why not a private configuration repository? Decided 2026-10-07 by the owner: homelab values are generated from the active config at deploy time, the same way Secrets come from the keyring. Once the in-cluster Gitea items (feat(k8s): the homelab runs gitea under argo cd as a read-write internal forge, served in-cluster over http and to workstations at https://git.<domain> through the cloudflare tunnel, with its admin secret pushed from the keyring #1081, feat(k8s): Point Argo CD to Gitea for git and PR dev images #1082) land, the private Argo CD configuration moves there (follow-up item).
- Why
ignoreDifferencesinstead of relying on the three-way diff leaving an unset field alone? That behaviour is undocumented (Multi-source Application: spec.sources[*].helm.parameters set via argocd app set is removed after sync (single-source works) argoproj/argo-cd#25855). AnignoreDifferenceson the parent combined withRespectIgnoreDifferences=trueis the documented app-of-apps pattern [sourced: https://argo-cd.readthedocs.io/en/stable/operator-manual/cluster-bootstrapping/#ignoring-differences-in-child-applications]. - Why build the Application's revision instead of the checkout? A routine run from a branch behind or different from what Argo CD builds would otherwise move hosts back onto the placeholder, or block every host with a failed
test.
Strategic alignment
- Milestone: v0.2.28. This is a critical fix for a regression introduced by 3f02ee9 (fix(k8s): resolve argocd application out-of-sync and manifest generation failures (#1279) #1281), and it blocks feat(release): v0.2.28 #1283. Related: fix(k8s): resolve argocd application out-of-sync and manifest generation failures #1279, feat(release): v0.2.28 #1283, feat(k8s): the homelab runs gitea under argo cd as a read-write internal forge, served in-cluster over http and to workstations at https://git.<domain> through the cloudflare tunnel, with its admin secret pushed from the keyring #1081, feat(k8s): Point Argo CD to Gitea for git and PR dev images #1082.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty-bot commentedon Oct 7, 2026
Intake placed this item kept in v0.2.28: it was already in v0.2.28.
Prevents a live-cluster outage (broken routes, placeholder config) and removes placeholder private values from the public repository.Requires rewriting the deploy-stack flow, updating Argo CD bootstrap manifests with ignoreDifferences, removing the old generator and compensating kubectl steps, updating tests and docs, plus a manual pre-merge verification.dan-petty-bot commentedon Oct 7, 2026
Moved to v0.2.29: v0.2.28 is cut, so nothing joins it until its release pull request is closed; a critical fix goes first into the next release. (devops roadmap reprioritize)
fix(k8s): argo cd takes homelab values from deploy-time overrides, an…
dan-petty-bot commentedon Oct 7, 2026
What changed
#1292, merged into
release/v0.2.28as 5c45b1e.36 file(s) changed.
How it was verified
Check runs at 72ce195:
Acceptance Criteria of
docs/agent/tasks/task-1290-argocd-deploy-time-overrides.md:k8s/devops/configmap.yamlis deleted, gitignored and unlisted (tests/test_k8s_argocd_apps.py).devops-cli-configfrom the active config on native and Argo CD-managed clusters, and exits non-zero when rendering or applying it fails (tests/test_k8s.py,tests/test_k8s_configmap.py).--argocd-revision, asspec.source.kustomize.patches. It pushes Secrets only after deriving them, exits non-zero on failure, and applies no Ingress (tests/test_k8s.py).tests/test_k8s_argocd_overrides.py).k8s/argocd/bootstrap/cluster.yamlignores/spec/source/kustomizeon both Applications withRespectIgnoreDifferences=true, neither Application declares that field in git, and AppProjecthomelabignores the orphaned ConfigMap (tests/test_k8s_argocd_apps.py).tests/test_k8s.py).tests/test_k8s_argocd_overrides.py,tests/test_k8s.py)..argocd-source.yamlgenerator, its command, its gitignore lines and the stdin Ingress applies are removed; no test or fixture writesk8s/devops/configmap.yaml.k8s/README.mddescribes the deploy-time values and the release-merge steps.release/v0.2.27, whose overlays carry the real hosts): right beforerelease/v0.2.28merges intomain, runuv run devops k8s deploy-stack --stack devops --argocd-revision release/v0.2.28from a checkout ofrelease/v0.2.28. Until the merge, Applicationingressshows ComparisonErrortesting value /spec/rules/0/host failed, and the live Ingresses are unchanged. After the merge, roadmap-service waits for imageservice:v0.2.28from the Release Orchestration workflow; once it is published, runkubectl -n devops rollout restart deploy/roadmap-service. Then rundevops argo cd apps status devops,devops argo cd apps status ingress,kubectl get ingress,ingressroute -A -o yaml | grep example.com(prints nothing) andkubectl -n devops get configmap devops-cli-config -o yaml.CHANGELOG.mdtakes this fragment and drops the fix(k8s): resolve argocd application out-of-sync and manifest generation failures #1279 entry that addsdevops k8s argocd-source, through achore/open-v0.2.28-<slug>pull request as fix(review): remediate copilot review comments and collate changelog for v0.2.28 #1284 did for 1279.md.dan-petty commentedon Oct 7, 2026
Back in v0.2.28 by the owner's decision (2026-10-07): the release branch holds every change v0.2.28 needs before its release pull request (#1283) merges. This is a critical fix for a regression introduced in this release by 3f02ee9 (#1281). Without it, merging #1283 retargets the Applications to
main, where every Ingress host renders as*.example.comand roadmap-service starts on placeholder config. The reprioritize rule that sends a critical fix to the next release while the release pull request is open is filed separately.chore(release): the v0.2.28 changelog takes #1290 and drops the argoc…
feat(release): v0.2.28 (#1283)
feat(k8s): the homelab runs gitea under argo cd as a read-write inter…