Repository navigation
fix(gamma): tolerate a missing HTTPFilter CRD instead of crashing (025/026) - #453
Merged
Merged
Conversation
…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
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
SetupWithManagerchecks the RESTMapper for the HTTPFilter GVK; adds the watch only when present (NoMatch→ warn + skip; other errors → fail). SetshttpFilterEnabled.Reconcilelists HTTPFilters only when enabled; otherwise the escape hatch is inert and the agent runs fine until the CRD is installed + it restarts.bazel build //...+ gamma tests + format-check green. Prevents the upgrade crashloop surfaced by the 026 talos e2e.