Commit Graph

6 Commits

Author SHA1 Message Date
Donavan Fritz 580b9afa33 ci: push image to fritzlab-public org
flock / release (push) Successful in 47m37s
This repo was transferred from fritzlab to fritzlab-public so the container
package's anonymous-pull access (governed by org visibility in Gitea 1.26.1)
remains open after the rest of fritzlab/* flips to limited.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-28 13:58:56 -05:00
Donavan Fritz 3d0081780c ci: migrate to action/ org composite actions
flock / release (push) Successful in 3m4s
2026-05-06 08:14:35 -05:00
Donavan Fritz 362a1e01ce ci: trigger dispatch after scheduler reset
Build flock Image / build (push) Successful in 1m56s
2026-04-26 17:53:55 -05:00
Donavan Fritz 222006240c ci: use fritzlab/build-image@v1
Build flock Image / build (push) Has been cancelled
Replaces inline docker login + metadata + build-push + tag-cleanup
with the shared build-image composite action. Standardizes on
CI_BOT_TOKEN (drops REGISTRY_PASSWORD).
2026-04-26 09:32:46 -05:00
Donavan Fritz e0ae98ad6c ci: move go test into Dockerfile build stage
Build flock Image / build (push) Has been cancelled
The runner runs jobs via act + DinD; `docker run -v "$PWD:/src"` from
inside the job container mounts the runner-job filesystem, not the
docker daemon's host fs, so the mount appears empty and `go test ./...`
fails with "directory prefix . does not contain main module".

Run tests in the same container that builds — same workspace, no mount.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-24 21:19:10 -05:00
Donavan Fritz 20f47916af flock M1 scaffold: CNI plugin + agent + NodeConfig CRD
Build flock Image / build (push) Has been cancelled
- cmd/flock + cmd/flock-agent: build cleanly; CNI ADD/DEL/CHECK return
  ErrInternal stubs until M2; agent boots, opens unix socket, logs JSON.
- pkg/agent/state.go: durable allocations.json (atomic write + fsync +
  parent fsync); pending/committed lifecycle. Tests cover round-trip,
  replace-by-cid, version mismatch, no-leak-on-tmp.
- pkg/embed/suffix.go: ip-algo IID embedding. Tests cover the /48-/96
  nibble distribution table from the design doc, determinism, prefix
  preservation, N-nibble isolation, digest-vs-fallback divergence.
- pkg/api/v1alpha1: minimal NodeConfig types (no controller-runtime yet).
- deploy/: NodeConfig CRD, empty ServiceAccount/ClusterRole, DaemonSet
  pinned to flock.fritzlab.net/agent="" label so it only runs on opted-in
  nodes.
- .gitea/workflows/main.yaml + Dockerfile: build + push to
  code.fritzlab.net/fritzlab/flock; runs go test in CI.

Design doc: dfritzlab/k8s-manager/dfritz-cni.md.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-24 21:17:42 -05:00