Repository navigation
Description
Friction
Application devops has applied nothing from main since 2026-10-11. Its automated sync was turned off by hand for the #1562 emergency stop, and the documented step to turn it back on once #1562 reached main was missed. Git cannot see or repair the toggle: automated.enabled is in neither the manifests nor last-applied-configuration, so the app-of-apps cluster reports devops as Synced and never reverts it, and no alert covers a paused Application. The next change under k8s/devops (the #1562 revert to replicas: 1, or any Image Updater digest bump) will show OutOfSync on devops and never be applied.
Evidence
Live, read-only, 2026-10-17 (Argo CD v3.5.3; main = 3dd7fa6):
- Application
argocd/devops:.spec.syncPolicy.automated = {enabled: false, prune: true, selfHeal: true}. It is the only one of 24 Applications withenabled: false; every other one has noenabledkey. - managedFields: manager
argocd-server, operation Update, 2026-10-11T01:43:49Z, owning onlyf:spec.f:syncPolicy.f:automated.f:enabled(a UI or API edit). At 01:44:18Zargocd-serveralso setf:spec.f:replicason Deploymentdevops/roadmap-service(live replicas 0). status.operationStatestarted and finished 2026-10-11T01:41:43Z on revision 69c99cf;status.syncis Synced at 3dd7fa6 only because nothing underk8s/devopshas changed since.- The
kubectl.kubernetes.io/last-applied-configurationannotation holdsautomated {prune, selfHeal}with noenabledkey.clusterhas synced four times since (6e862cd, de09432, 5dbb86e, 3dd7fa6) and never restored it.clusterhas no ServerSideApply option. - No live drift today: the only
k8s/devopschange since 69c99cf (replicas 1 to 0) matches the hand scale, and the Deployment's image digest matches the one Image Updater set on the Application.
Repo:
k8s/argocd/apps/devops.yaml:17-20setsautomated: {prune: true, selfHeal: true}with noenabledkey; the same holds for every file ink8s/argocd/apps/andk8s/argocd/bootstrap/{bootstrap,cluster}.yaml.docs/agent/tasks/task-1562-suspend-roadmap-service.md:27: "Pending a person: keep thedevopsApplication's sync off until this change reachesmain, then turn it back on." The change reached main at 6e862cd (v0.2.34) on 2026-10-11 21:09Z.k8s/devops/roadmap-service/deployment.yaml:10-12already holdsreplicas: 0, so turning sync on starts nothing.tests/test_k8s_argocd_apps.py:72-80(test_automated_sync_policies) checks prune, selfHeal and retry.limit, not enabled.k8s/README.mdsays nothing about pausing an Application.
Remedy
- Pending a person (it changes the cluster): finish
task-1562-suspend-roadmap-service.md:27by turning automated sync on thedevopsApplication back on. Main has heldreplicas: 0since 6e862cd, so no workload starts; afterwardskubectl -n devops get deploy roadmap-servicestill shows 0/0. Merging step 2 also does this throughcluster, one release later. - Test first: in
tests/test_k8s_argocd_apps.py::test_automated_sync_policies, addassert automated.get("enabled") is True(it fails today), and extend it to the two bootstrap Applications. - Write
enabled: trueunderspec.syncPolicy.automatedin everyk8s/argocd/apps/*.yamland ink8s/argocd/bootstrap/{bootstrap,cluster}.yaml. The value then lands in last-applied-configuration, socluster's three-way diff marks a UI toggle OutOfSync and selfHeal restores it. Do not rely on ServerSideApply or a server-side diff oncluster: a field git does not declare stays owned by argocd-server and is left alone either way. k8s/README.mdGitOps section: an Application is paused in git (enabled: falsein its manifest), never in the UI; with the pin,clusterreverts a UI pause within one selfHeal cycle, so an emergency stop goes through git, or through pausingclusterfirst. Name this in the chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 revert item when it is filed.- The alert on a paused Application (
argocd_app_info{autosync_enabled="false"}) belongs to Metrics for the rest of the platform #551, which owns the Argo CD scrape and sync alerts; this item links it.
Priority: P2. Severity medium (latent; no drift today); it blocks the Image Updater fix for the devops Application (P2) and the future #1562 revert.
Proposed design
Problem statement
The devops Application's automated sync is disabled in Git, but Argo CD's cluster application syncs it back on, causing a drift that blocks future changes. The issue occurs because the enabled field is not present in the manifest or last-applied-configuration, so Argo CD cannot detect when it was manually toggled off.
Acceptance criteria
- Criterion 1: The devops Application's automated sync policy includes enabled: true in its manifest
Verification: Run 'kubectl get application devops -n argocd -o yaml' and verify that spec.syncPolicy.automated.enabled is set to true - Criterion 2: The test suite verifies the enabled field is present and true for all Applications
Verification: Execute 'pytest tests/test_k8s_argocd_apps.py::test_automated_sync_policies' and confirm it passes with assert automated.get("enabled") is True - Criterion 3: The cluster application detects when the devops Application's sync was manually disabled and reverts it
Verification: Manually disable the devops Application's sync via UI, wait for selfHeal cycle, and confirm the Application's automated.enabled field is restored to true
Key questions
- What is the current state of the devops Application's automated sync policy?: The devops Application's spec.syncPolicy.automated has prune: true, selfHeal: true but no enabled field, which means it's effectively disabled since Argo CD's cluster application will not detect manual changes to this field. [sources: k8s/argocd/apps/devops.yaml:3: syncPolicy:
automated:
prune: true
selfHeal: true] - What is the expected behavior after implementing the fix?: After implementing the fix, all Applications' manifests will include enabled: true under spec.syncPolicy.automated, and the cluster application will be able to detect when an Application's sync was manually toggled off and revert it through selfHeal. (proposed) [sources: docs/agent/tasks/task-1562-suspend-roadmap-service.md:27: Pending a person: keep the
devopsApplication's sync off until this change reachesmain, then turn it back on.]
Fit
Needs splitting into 3 items:
- Add enabled: true to all Applications' manifests in k8s/argocd/apps/
- Update test suite to validate the enabled field is present and true
- Document that Applications are paused in Git, not UI, in k8s/README.md
Suspected block
None.
Dependencies
None.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 18, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
The candidate describes a bug where automated sync is incorrectly disabled in the devops application.The issue causes a critical failure in the deployment pipeline and requires immediate attention to restore normal operations.This fix restores normal functionality of the CI/CD pipeline by enabling automated sync, which is essential for continuous delivery.The fix involves updating configuration files and tests, but does not require major architectural changes or new features.dan-petty commentedon Oct 18, 2026
Proposal needs splitting into 3 items at 25e2cda (see proposed design in issue body).
dan-petty commentedon Oct 18, 2026
Amendment (2026-10-18): folded here by intake under the agent filing quota
The cycle's agent filing allowance (#1153) was used, so
devops roadmap intakefiled nothing and named this item as the nearest. The candidate below is related work that can land with this item or be filed on its own in a later cycle. Candidate title: "fix(argocd): image updater keeps the devops application on the current service:latest digest while no pod runs".Friction
Image Updater stopped moving the
devopsApplication to newservice:latestdigests on 2026-10-11 and reports success while doing nothing. It only updates images it sees running instatus.summary.images; the CronJobdevops-cliis a suspended template androadmap-serviceis at 0 replicas (#1562), so no pod runs the image and every cycle skips it. Every Job started withdevops k8s run-jobcopies the template and runs v0.2.33, three releases behind, and the release check ink8s/README.mdstep 4 fails without any condition, metric or alert saying so.Evidence
Live, read-only, 2026-10-17:
argocd/devops:spec.source.kustomize.images=ghcr.io/dan-petty/devops-cli/service:latest@sha256:e156dd85...(v0.2.33), last written 2026-10-10T14:32:44Z.status.summaryhas noimages.latest= sha256:52486017....devops/devops-cli(suspend: true) and Deploymentdevops/roadmap-service(replicas: 0) both carry the v0.2.33 digest. Namespacedevopshas no pods and no Jobs.argocd/devops(controller v1.3.0): Ready=True (ReconcileSucceeded), Error=False,imagesManaged0,lastUpdatedAt2026-10-10T14:32:44Z; live specforceUpdate: false(CRD default).images_considered=1cycle was 2026-10-11T01:43:23Z; since 01:45:23Z about 4,800 cycles loggedimages_considered=0 images_skipped=1 images_updated=0.GetImagesFromApplication(pkg/argocd/argocd.go:1142-1163) builds the live list fromapp.Status.Summary.Imagesplus any image withForceUpdate;UpdateApplication(pkg/argocd/update.go:62-67) skips the rest. update.go:222-230 skips the write once the spec already names the digest, soforceUpdatedoes not write every cycle.argocd_image_updater_*series.Repo:
k8s/argocd/image-updater-values.yaml:17-23setscommonUpdateSettings: {updateStrategy: digest}only; the header (:3-9) does not mention needing a running pod.k8s/devops/cronjob.yaml:1-13makes the CronJob an always-suspended template; Jobs fromdevops k8s run-job(src/devops_cli/commands/k8s/cluster_jobs.py) set no ownerReference, so their pods never enter the Application tree.k8s/README.md:422(release step 3) and:432(Service Image Updates) promise both workloads move within one poll;:423(step 4) checks the Application names thelatestdigest.tests/test_k8s_argocd_apps.py:465(test_image_updater_keeps_only_application_devops_on_the_digest_of_service_latest) pins the strategy.Remedy
test_image_updater_keeps_only_application_devops_on_the_digest_of_service_latestto assertforceUpdate is Truenext toupdateStrategy == "digest"(fails today).k8s/argocd/image-updater-values.yaml: addforceUpdate: trueunder theserviceimage'scommonUpdateSettings, and say in the header why: the CronJob is a suspended template and run-job Jobs are outside the Application tree, so no running pod reports the image.k8s/README.mdService Image Updates (around:432): the update works with zero replicas because offorceUpdate;imagesManaged: 0on the ImageUpdater means nothing is tracked.devops argo cd apps status devopsor the release rehearsal (fix(release): a release pull request rehearses the cut and the release job read-only, so a green pull request means the release job passes on merge #1425/feat(release): a release is cut only after every argo cd application builds at the release head and its live changes are shown #1343): compare the Application's digest with the anonymous GHCRservice:latestdigest and report a mismatch as an error.changelog.d/<issue>.mdunder### Fixed.Depends on: the item that pins
automated.enabledand turns thedevopsApplication's sync back on; without it Image Updater writes the new digest into the spec and Argo CD never applies it.Verification after both merge: within one 2-minute poll the Application names sha256:52486017... (or the then-current
latest), and the CronJob template carries it.Priority: P2. Severity medium: every in-cluster run-job runs a release three versions old, unreported.