Commit a99ad5c
feat: hermes-operator v1.0.0 — plans 1–7 implementation (#1)
## Summary
Implements **all seven plans** to bring `hermes-operator` to v1.0.0
quality. 175 commits delivering CRDs, reconcilers, webhooks, day-2 ops,
release pipeline, conformance suite, and v1 docs/examples.
### Plans landed
| Plan | Scope | Status |
|---|---|---|
| 1 | Kubebuilder v4 scaffold + minimal happy path | ✅ |
| 2 | Hardened defaults, observability, leader election, full feature
surface | ✅ |
| 3 | Gateways, Honcho profile store, web terminal, Tailscale | ✅ |
| 4 | `HermesSelfConfig` SSA controller + validator + GitOps coexistence
| ✅ |
| 5 | Day-2 ops: backup/restore, auto-update with rollback, OpenClaw
migration | ✅ |
| 6 | Distribution: release-please, GoReleaser, Cosign + SBOM, OLM
bundle, conformance suite | ✅ (heavy conformance variants 18/19/20/22
deferred) |
| 7 | v1 polish: api-versioning policy, deprecation policy, condition
catalogue, ROADMAP, README, CHANGELOG, 10 worked examples | ✅ (Grafana
16/17 + release-merge 19-24 still open) |
### Highlights
**API surface (`hermes.agent/v1`):** `HermesInstance` (namespaced),
`HermesSelfConfig` (namespaced), `HermesClusterDefaults` (cluster-scoped
singleton). Full validating/defaulting webhooks via cert-manager.
**Reconcilers:** Main `HermesInstanceReconciler` + four sub-reconcilers
(backup, restore, auto-update, migration) + dedicated
`HermesSelfConfigReconciler`. All finalizer mutations use `r.Patch(ctx,
inst, client.MergeFrom(original))` — never `r.Update` — enforced by
`hack/reconcile-guard.sh` grep check (lesson #437).
**SSA coexistence:** `HermesSelfConfig` writes via field manager
`hermes.agent/selfconfig`; FluxCD writes via `kustomize-controller`;
explicit envtest proves no flap.
**Day-2 ops:** Scheduled + on-delete + pre-update backups (restic to
S3/MinIO/R2); declarative `restoreFrom` with init-container;
OCI-registry-driven `autoUpdate` with channel resolution, pre-update
backup, probe-driven rollback, and `lastFailedTag` suppression; one-shot
OpenClaw migration (sibling PVC or S3 snapshot).
**Distribution pipeline:** `release-please-action` v4 → GoReleaser v2
multi-arch dockers → Cosign keyless OIDC signing of all three image tags
(`vX.Y.Z`, `X.Y`, `latest`) → Syft SPDX-JSON SBOM attest → Helm OCI push
to `ghcr.io/stubbi/charts` → OLM bundle (CSV + CRDs) auto-submitted to
`k8s-operatorhub/community-operators` and
`redhat-openshift-ecosystem/community-operators-prod`. Weekly
`verify-signing.yaml` drift detector opens an `infra-broken` issue if
cosign verification ever fails.
**Conformance:** Ginkgo suite at `test/conformance/` with 10 testdata
fixtures, negative tests for every webhook deny path, idempotency canary
(10-reconcile no-op proving lesson #437), and nightly
`.github/workflows/conformance.yaml` cron. envtest matrix runs k8s
1.28–1.32 on every PR.
**Docs:** `docs/api-versioning.md`, `docs/deprecations.md`,
`docs/conditions.md` (canonical catalogue), `docs/release-process.md`,
`docs/conformance.md`, `docs/supported-versions.md`,
`docs/backup-restore.md`, `docs/autoupdate.md`, `docs/migration.md`,
`docs/security/signing.md`, `docs/api-reference.md`,
`docs/selfconfig.md`. Public `ROADMAP.md`, `CHANGELOG.md` with v1.0.0
entry, README rewritten as v1 landing page.
**Examples (10 worked recipes under `examples/`):** `minimal`,
`full-featured`, `multi-platform`, `honcho`, `auto-update`, `backup-s3`
(MinIO on kind), `migration-from-openclaw` (both source modes),
`gitops-fluxcd`, `cluster-defaults`, plus `examples/README.md` index.
### What's deferred
- **Plan 6 Tasks 18/19/20/22** — upgrade-matrix / GitOps kind /
failure-injection / benchmark conformance jobs are scaffolded as
workflow stubs but the heavy test bodies are deferred. The non-stub
conformance jobs (negative, idempotency) gate PRs.
- **Plan 6 Task 24** — live end-to-end smoke of release pipeline
requires user-provided `RELEASE_PLEASE_TOKEN` PAT and cosign OIDC
permissions.
- **Plan 7 Tasks 16/17** — Grafana dashboard JSON + README still to
land.
- **Plan 7 Tasks 19–24** — release-merge / OperatorHub PR tracking /
launch announce / flip repo public are user-driven post-merge actions.
### Required repo secrets before first release
- `RELEASE_PLEASE_TOKEN` — fine-grained PAT with `contents: write` +
`pull-requests: write`; needed for tag creation + OperatorHub
fork-and-PR. Without it `release-please.yaml` and
`operatorhub-submit.yaml` will fail.
- Cosign keyless signing uses GitHub Actions OIDC — no key material to
store, but the `release.yaml` workflow needs `id-token: write`
permission (already set).
## Test plan
- [ ] Lint workflow green
- [ ] Test workflow green across k8s 1.28–1.32 envtest matrix
- [ ] Reconcile Guard workflow green (no `r.Update` near finalizer
mutations)
- [ ] Helm RBAC Sync + Bundle RBAC Sync workflows green
- [ ] Build workflow green (multi-arch)
- [ ] E2E workflow green (kind + cert-manager + MinIO + helm install)
- [ ] Conformance jobs (negative, idempotency) green; stub jobs may be
skipped
- [ ] Sample manifests under `config/samples/` apply cleanly
- [ ] `examples/` recipes apply on a kind cluster (manual)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 173e60b commit a99ad5c
275 files changed
Lines changed: 55013 additions & 0 deletions
File tree
- .github
- ISSUE_TEMPLATE
- workflows
- api/v1
- bundle
- manifests
- metadata
- tests/scorecard
- charts/hermes-operator
- templates
- crds
- cmd
- config
- crd
- bases
- default
- manager
- prometheus
- rbac
- samples
- webhook
- docs
- security
- examples
- auto-update
- backup-s3
- cluster-defaults
- full-featured
- gitops-fluxcd
- honcho
- migration-from-openclaw
- minimal
- multi-platform
- hack
- images/hermes-agent
- internal
- controller
- oci
- resources
- webhook
- test
- conformance
- testdata
- e2e
- testdata
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
0 commit comments