feat(96bulls): hook-free 96bulls-worker and alleyoop charts

Merged
KH
1mo ago
+1183-0

Adds two charts for the 96Bulls sessions pipeline (96BullSessions), built to install cleanly under Alchemy's Kubernetes.HelmChart. Alchemy renders with helm template --no-hooks, applies with server-side apply, and keeps no Helm release.

Charts

  • 96bulls-worker
    • hoopdb-migrate and locker-init are plain Jobs, not hooks. Each Job's name includes a hash of the image and its config, because a Job's pod template can't be changed by server-side apply.
    • There is no ttlSecondsAfterFinished: Alchemy treats a deleted object as drift and would recreate it, rerunning the migration.
    • Workers: hoopdb-indexer (1 replica, Recreate, because reconcile has no leader election yet), referee, bob-costas.
  • alleyoop
    • The ingest Deployment and its Service.
    • /readyz returns 503 until the HoopDb migration ledger matches the image, so any apply order works.

Both charts:

  • Default to public GHCR (global.imageRegistry), support image.digest pinning, and pass imagePullSecrets to every workload and Job.
  • Take existingSecret. An optional externalSecrets block renders an ExternalSecret targeting that Secret.
  • Fail at render time if a required value is missing.
  • Use the services' env contract unchanged.

Testing

ci/96bulls/smoke.sh installs both charts on kind exactly the way Alchemy does. Dependencies are pgvector Postgres 17, minio/minio 5.4.0 (bucket hook off, image cgr.dev/chainguard/minio pinned by digest) and opentelemetry-collector 0.178.0 (image 0.163.2, matching the chart).
Run locally (GREEN):

  • the migrate Job completed (8 migrations)
  • locker-init retried until MinIO came up, then created the bucket
  • all Deployments are Ready and ingest /readyz returns 200
  • re-applying the same render caused no Job conflict

helm lint --strict passes; the render has zero helm.sh/hook annotations and is byte-identical across runs.

Notes

  • MinIO no longer publishes public images (minio/minio and quay.io/minio/minio are both missing). Chainguard's free tier is :latest only, so we pin the digest and bump it ourselves.
  • ghcr.io/agentworkforce/96bulls-services isn't published yet. Until it is, set image.repository/image.tag, or load the image locally as the smoke test does.
  • Follow-ups: lint and kind CI for this repo (hook ban, render determinism, this smoke test), Helm 4 and OCI publishing in release.yml, CloudNativePG in place of the test Postgres, and an umbrella 96bulls chart.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Adds 96bulls-worker and alleyoop, two hook-free Helm charts for the 96Bulls sessions pipeline that install cleanly under Alchemy's Kubernetes.HelmChart (rendered with helm template --no-hooks, applied server-side, no Helm release). Both also work with plain helm install, and README.md documents that path, including --create-namespace and the unpublished default image.

Charts

  • 96bulls-worker runs the HoopDb migrate and Locker bucket-init Jobs plus the hoopdb-indexer, referee, and bob-costas workers.
  • Job names hash the entire rendered Job spec, so any image or pod-template change creates a new Job, since Job pod templates can't be patched by server-side apply; there's no ttlSecondsAfterFinished because Alchemy would recreate a deleted Job and rerun the migration.
  • alleyoop deploys the ingest service; its /readyz stays 503 until the HoopDb migration ledger matches the image, so any apply order works.
  • Both charts default to public GHCR (prefixing only relative repositories), support digest pinning and imagePullSecrets, and require an existingSecret.
  • An optional externalSecrets block renders an ExternalSecret targeting that Secret, validates every required key is mapped, and supports a configurable creationPolicy.
  • Both fail at render time on missing required values; alleyoop requires exactly one of auth.jwksUrl or auth.localJwks, and hoopdb-indexer refuses replicas above 1.
  • Long names are truncated with a hash suffix so releases never collide.

Testing

  • ci/96bulls/smoke.sh installs both charts on kind the same way Alchemy does, with pgvector Postgres 17, MinIO 5.4.0 (Chainguard digest-pinned image, bucket hooks off), and the OpenTelemetry collector.
  • ghcr.io/agentworkforce/96bulls-services isn't published yet; until it is, set image.repository/image.tag or load the image locally as the smoke test does.

Agent Relay sessions

  • claude session 927c0d24 · opened via gh pr create · last active 2026-10-29