Reads the home cluster's Argo CD Applications, so a delivery can wait for the cluster to run a change (from agent-tools, AGT-85)
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nelson 7e76ed104b
All checks were successful
Suite release / deliver (push) Has been skipped
Suite release / deliver-prune (push) Has been skipped
Suite release / reused-checks (push) Has been skipped
Suite release / module (push) Successful in 43s
Suite release / check-manifest (push) Has been skipped
Suite release / publish (push) Has been skipped
Suite release / scope (push) Successful in 29s
Suite release / reserve (push) Has been skipped
Suite release / check-build (none, ubuntu-latest) (ubuntu-latest, none) (push) Has been skipped
Suite release / build (none, ubuntu-latest) (ubuntu-latest, none) (push) Has been skipped
Suite release / deploy-image (push) Has been skipped
Suite release / check-package (push) Has been skipped
Suite release / finalize (push) Has been skipped
cluster moves in from agent-tools, unchanged (#1)
2026-11-29 23:26:21 -08:00
app.go cluster moves in from agent-tools, unchanged (#1) 2026-11-29 23:26:21 -08:00
argo_test.go cluster moves in from agent-tools, unchanged (#1) 2026-11-29 23:26:21 -08:00
go.mod cluster moves in from agent-tools, unchanged (#1) 2026-11-29 23:26:21 -08:00
README.md cluster moves in from agent-tools, unchanged (#1) 2026-11-29 23:26:21 -08:00
watch.go cluster moves in from agent-tools, unchanged (#1) 2026-11-29 23:26:21 -08:00
watch_test.go cluster moves in from agent-tools, unchanged (#1) 2026-11-29 23:26:21 -08:00

cluster

Reads the home cluster's Argo CD Applications, which say what the cluster runs from each repo, so a delivery can wait for the cluster to run a change (AGENT-234). NewArgo reads them through Argo CD's own API; NewWatch lists and watches them only while something wants the cluster, and passes on only the changes a delivery reads.

It was agent-tools' cluster package until shared packages got repositories of their own (AGT-85, AHT-258).

Using it

require forgejo.romaine.life/romaine-life/cluster v0.1.0
import "forgejo.romaine.life/romaine-life/cluster"

watch := cluster.NewWatch(token, wanted, listed, changed)

Testing

go test ./..., against httptest servers; no cluster is reached.

Shipping

A library: the release-module topic in pipeline-templates' fleet.json tags each merge that changes the code, and every fleet repository whose go.mod requires it gets a take-up. Forgejo pushes it to its public GitHub copy, which proxy.golang.org serves to builds outside CI.