Skip to content

fix(gamma): tolerate a missing HTTPFilter CRD instead of crashing (025/026) - #453

Merged
bpalermo merged 1 commit into
mainfrom
fix/gamma-tolerate-missing-httpfilter-crd
Jun 29, 2026
Merged

bpalermo merged 1 commit into
mainfrom
fix/gamma-tolerate-missing-httpfilter-crd

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

The agent GAMMA controller hard-crashed (manager cache-sync timeout → crashloop) when the HTTPFilter CRD wasn't established at startup — observed on the talos 0.56→0.60 upgrade: all 5 agents crashlooped during the CRD-propagation window before self-recovering.

Gate the optional HTTPFilter watch + list on the CRD being present:

  • SetupWithManager checks the RESTMapper for the HTTPFilter GVK; adds the watch only when present (NoMatch → warn + skip; other errors → fail). Sets httpFilterEnabled.
  • Reconcile lists HTTPFilters only when enabled; otherwise the escape hatch is inert and the agent runs fine until the CRD is installed + it restarts.
  • Test: disabled → Reconcile skips the list (no crash without the CRD); enabled → lists.

bazel build //... + gamma tests + format-check green. Prevents the upgrade crashloop surfaced by the 026 talos e2e.

…5/026)

The agent GAMMA controller hard-crashed (manager cache-sync timeout → crashloop)
when the HTTPFilter CRD (proposal 025) wasn't established at startup — observed on
the talos 0.56→0.60 upgrade: all agents crashlooped during the CRD-propagation
window before self-recovering. crds-before-aether ordering is necessary but not
sufficient (propagation timing still bit).

Gate the optional HTTPFilter watch + list on the CRD actually being present:
- SetupWithManager checks the RESTMapper for the HTTPFilter GVK; adds the watch only
  when present (NoMatch → warn + skip; other errors → fail). Sets httpFilterEnabled.
- Reconcile lists HTTPFilters only when enabled; otherwise the escape hatch is inert
  (empty map) and the agent runs fine until the CRD is installed + it restarts.
- Test: disabled → Reconcile skips the list (no crash without the CRD); enabled →
  lists (errors against a scheme lacking it, proving the gate).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01N7oY7W8oDXrqDzFgoZh25S
@bpalermo
bpalermo merged commit a9d745b into main Jun 29, 2026
5 checks passed
@bpalermo
bpalermo deleted the fix/gamma-tolerate-missing-httpfilter-crd branch June 29, 2026 19:16
bpalermo added a commit that referenced this pull request Jul 2, 2026
…ashloop) (#461)

The gamma reconciler watches HTTPFilter since #446, but the agent's runtime scheme
never registered the config.aether.io group — so with --gamma every agent start fails
the HTTPFilter cache sync with "no kind is registered for the type v1.HTTPFilter",
the manager crash-loops, and the CNI socket dies with it (new managed pods can't
sandbox). Observed on talos-main: all 5 agents crashlooping since the 0.60.0 deploy
(496 restarts / 2d15h). Unit tests missed it because the test scheme registered the
type; the RESTMapper gate (#453) doesn't cover it — it checks the CRD on the API
server, not the client scheme.

Fix: configapisv1.AddToScheme in the --gamma block, beside the gateway-api installs.


Claude-Session: https://claude.ai/code/session_01N7oY7W8oDXrqDzFgoZh25S

Co-authored-by: Claude Opus 4.8 <[email protected]>
bpalermo added a commit that referenced this pull request Jul 6, 2026
New docs/runbook.md covering the day-to-day developer loop: prerequisites
(Bazelisk, Docker/Colima, kubectl, helm, kind), build/test/format/lint via the
Makefile, image loading, the local two-cluster e2e harness
(e2e/multicluster_config.sh up|test|verify|down + the fs.inotify sysctl), and the
CRDs-before-aether install order (#453 agent crash if HTTPFilter CRD is absent).
All commands verified against the Makefile and the e2e script.


Claude-Session: https://claude.ai/code/session_01N7oY7W8oDXrqDzFgoZh25S

Co-authored-by: Claude Fable 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant