Skip to content

perf: drop controller-runtime from cni-install and prober (25→5 MiB, 40→15 MiB) via common/signals + slog (#772) - #777

Merged
bpalermo merged 5 commits into
mainfrom
perf/772-b1-slim-cni-install-prober
Sep 16, 2026
Merged

bpalermo merged 5 commits into
mainfrom
perf/772-b1-slim-cni-install-prober

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

Phase B1 of #772 (R1 + R2 from the dependency-tree review).

perf(cni-install,prober): drop controller-runtime for one signal handler (#772)

cni/cmd/cni-install/main.go and prober/cmd/prober/main.go imported
sigs.k8s.io/controller-runtime for a single call to ctrl.SetupSignalHandler().
That one import links the whole Kubernetes client stack — client-go, api,
apimachinery, apiextensions-apiserver, kube-openapi, all 13 go-openapi/swag
modules, prometheus/client_golang, json-iterator, fxamacker/cbor — into an init
container that copies a file and writes a conflist, and into a black-box HTTP
prober with no Kubernetes API access at all. The dependency-tree review measured
11.45 MiB of symbols attributed to k8s.io/api alone in cni-install, a package it
never calls: it arrives through controller-runtime's root-package init.

New //common/signals (zero external modules — that is the point of it) provides
the same contract in ~30 lines of stdlib:

  • NotifyContext(parent) — first SIGINT/SIGTERM cancels the context, a second
    one os.Exit(1)s. That is exactly what controller-runtime's handler does, so
    operator-visible behaviour is unchanged. Unlike controller-runtime's it takes
    a parent context and may be called more than once per process.
  • NotifyContextFunc(parent, onSecond) — same, with the caller deciding what
    the second signal means.

agent/cmd/mesh-dns had grown its own copy of this (a signal.NotifyContext plus
a 15-line awaitSecondSignal goroutine) and now uses the shared helper. It is the
caller that needs NotifyContextFunc: for mesh-DNS a second signal does not exit,
it cuts the #729 lame-duck window short so the resolver closes its SO_REUSEPORT
listeners in order instead of discarding the datagrams already queued to them.
That behaviour is preserved exactly; the notification stays registered after
cancellation (as signal.NotifyContext leaves it), so a third signal is swallowed
by the full buffered channel rather than killing the process mid-drain.

Measured, bazel build default config, stat -Lc%s and
go version -m | grep -c '^\tdep' (hermetic SDK):

cni-install 26,514,732 B (25.29 MiB) -> 5,698,860 B (5.43 MiB), -78.5%
65 modules -> 9
prober 42,346,572 B (40.38 MiB) -> 19,007,404 B (18.13 MiB), -55.1%
78 modules -> 41

bazel query 'deps(//cni/cmd/cni-install:cni-install)' now matches
controller_runtime 0 times (was 170) and client_go 0 times (was 2232); its
external go_library closure, minus the 66 nogo x/tools targets that appear on
every target in this repo, is 31 — the size the review predicted for the work the
binary actually does. The prober keeps 6 controller-runtime targets via
pkg/log/zap, removed in the next commit.

Verification: bazel test //common/signals/... //cni/... //prober/... //agent/cmd/mesh-dns/... (13 targets, all pass, including the three container
structure tests); bazel run //:gazelle (regenerated the three BUILD.bazel dep
lists, no further churn); bazel run //:format.check; bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation over the same packages.

perf(prober): log through //common/log (slog) instead of controller-runtime zap (#772)

prober/internal/cmd/root.go imported sigs.k8s.io/controller-runtime/pkg/log/zap
for a single zap.New() producing the logr.Logger that prober.New took. It was
the prober's SECOND path to controller-runtime — the first one went in the previous
commit — and both had to go before either paid off: a black-box HTTP prober with no
Kubernetes API access was linking the whole client stack for two log statements.

It is also a leftover from the logr/zap -> slog migration (#223). //common/log has
been the convention since, with zero external modules and 39 reverse deps.

  • prober.New takes *slog.Logger instead of logr.Logger.
  • p.log.Error(err, "telemetry shutdown") inverts to
    p.log.Error("telemetry shutdown", "error", err) — "error" is this repo's key
    for the error attribute (202 call sites, 0 using "err"), and it happens to be
    the key zap's logr adapter emitted too, so that JSON field is unchanged.
  • The four logr.Discard() in prober_test.go become slog.New(slog.DiscardHandler).

Log-key audit before changing the record shape, since the prober feeds the soak SLI.
Checked the GitOps repo bpalermo/k8s-talos-main (Prometheus rules + rules_test,
otel-collector values, VictoriaLogs config), charts/prober, docs/, e2e/soak/
and the aether-soak skill. Result: NOTHING consumes prober log lines. Every prober
consumer reads the metric aether_probe_requests_total and its
tier/target/result/node labels (AetherProberHTTPErrorBurst,
MeshDNSResolutionFailing and their unit tests), plus
aether_probe_request_duration_seconds. Those are untouched by this commit. The only
log-grep observable documented anywhere for the soak is an AGENT line
(e2e/soak/README.md, the #682 dependency-set message), not a prober one. So the two
messages ("prober starting", "telemetry shutdown"), their attribute keys
(targets/rate/egress/error) and the "level"/"caller" JSON keys are all kept identical;
only slog's "timestamp"/"message" replace zap's "ts"/"msg", which nothing reads.
The level is unchanged too (zap.New() defaults to production/Info, as does
log.NewLogger(false)); the prober has no --debug flag and gains none here.

Measured (default config, stat -Lc%s, go version -m | grep -c '^\tdep'):

prober after the previous commit 19,007,404 B (18.13 MiB), 41 modules
after this one 15,906,508 B (15.17 MiB), 23 modules
vs. main @ 3c8f9c7 42,346,572 B (40.38 MiB), 78 modules -> -62.4%

bazel query 'deps(//prober/cmd/prober:prober)' now matches controller_runtime
0 times (was 174) and client_go 0 times (was 2232). Its external go_library
closure, minus the 66 nogo x/tools targets present on every target in this repo, is
183 — the review's prediction was ~185.

Verification: bazel build //... //test/e2e:e2e_test; bazel test //... --test_output=errors (99 targets, all pass, including the cni-install, prober and
mesh-dns container structure tests and both charts/prober chart tests); bazel run //:format.check; bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //...; bazel run //:gazelle and
bazel mod tidy both no-churn; scripts/go-deps-audit.sh exit 0 (go-logr/logr
stays in the build list — the OTel SDK uses it).

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

bpalermo and others added 5 commits September 15, 2026 19:25
…ler (#772)

`cni/cmd/cni-install/main.go` and `prober/cmd/prober/main.go` imported
`sigs.k8s.io/controller-runtime` for a single call to `ctrl.SetupSignalHandler()`.
That one import links the whole Kubernetes client stack — client-go, api,
apimachinery, apiextensions-apiserver, kube-openapi, all 13 go-openapi/swag
modules, prometheus/client_golang, json-iterator, fxamacker/cbor — into an init
container that copies a file and writes a conflist, and into a black-box HTTP
prober with no Kubernetes API access at all. The dependency-tree review measured
11.45 MiB of symbols attributed to `k8s.io/api` alone in cni-install, a package it
never calls: it arrives through controller-runtime's root-package init.

New `//common/signals` (zero external modules — that is the point of it) provides
the same contract in ~30 lines of stdlib:

  - `NotifyContext(parent)` — first SIGINT/SIGTERM cancels the context, a second
    one `os.Exit(1)`s. That is exactly what controller-runtime's handler does, so
    operator-visible behaviour is unchanged. Unlike controller-runtime's it takes
    a parent context and may be called more than once per process.
  - `NotifyContextFunc(parent, onSecond)` — same, with the caller deciding what
    the second signal means.

`agent/cmd/mesh-dns` had grown its own copy of this (a `signal.NotifyContext` plus
a 15-line `awaitSecondSignal` goroutine) and now uses the shared helper. It is the
caller that needs `NotifyContextFunc`: for mesh-DNS a second signal does not exit,
it cuts the #729 lame-duck window short so the resolver closes its SO_REUSEPORT
listeners in order instead of discarding the datagrams already queued to them.
That behaviour is preserved exactly; the notification stays registered after
cancellation (as `signal.NotifyContext` leaves it), so a third signal is swallowed
by the full buffered channel rather than killing the process mid-drain.

Measured, `bazel build` default config, `stat -Lc%s` and
`go version -m | grep -c '^\tdep'` (hermetic SDK):

  cni-install  26,514,732 B (25.29 MiB) -> 5,698,860 B (5.43 MiB), -78.5%
               65 modules -> 9
  prober       42,346,572 B (40.38 MiB) -> 19,007,404 B (18.13 MiB), -55.1%
               78 modules -> 41

`bazel query 'deps(//cni/cmd/cni-install:cni-install)'` now matches
`controller_runtime` 0 times (was 170) and `client_go` 0 times (was 2232); its
external `go_library` closure, minus the 66 nogo x/tools targets that appear on
every target in this repo, is 31 — the size the review predicted for the work the
binary actually does. The prober keeps 6 controller-runtime targets via
`pkg/log/zap`, removed in the next commit.

Verification: `bazel test //common/signals/... //cni/... //prober/...
//agent/cmd/mesh-dns/...` (13 targets, all pass, including the three container
structure tests); `bazel run //:gazelle` (regenerated the three BUILD.bazel dep
lists, no further churn); `bazel run //:format.check`; `bazel build --config=lint
--@aspect_rules_lint//lint:fail_on_violation` over the same packages.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
…untime zap (#772)

`prober/internal/cmd/root.go` imported `sigs.k8s.io/controller-runtime/pkg/log/zap`
for a single `zap.New()` producing the `logr.Logger` that `prober.New` took. It was
the prober's SECOND path to controller-runtime — the first one went in the previous
commit — and both had to go before either paid off: a black-box HTTP prober with no
Kubernetes API access was linking the whole client stack for two log statements.

It is also a leftover from the logr/zap -> slog migration (#223). `//common/log` has
been the convention since, with zero external modules and 39 reverse deps.

  - `prober.New` takes `*slog.Logger` instead of `logr.Logger`.
  - `p.log.Error(err, "telemetry shutdown")` inverts to
    `p.log.Error("telemetry shutdown", "error", err)` — `"error"` is this repo's key
    for the error attribute (202 call sites, 0 using `"err"`), and it happens to be
    the key zap's logr adapter emitted too, so that JSON field is unchanged.
  - The four `logr.Discard()` in `prober_test.go` become `slog.New(slog.DiscardHandler)`.

Log-key audit before changing the record shape, since the prober feeds the soak SLI.
Checked the GitOps repo `bpalermo/k8s-talos-main` (Prometheus rules + rules_test,
otel-collector values, VictoriaLogs config), `charts/prober`, `docs/`, `e2e/soak/`
and the aether-soak skill. Result: NOTHING consumes prober log lines. Every prober
consumer reads the metric `aether_probe_requests_total` and its
`tier`/`target`/`result`/`node` labels (AetherProberHTTPErrorBurst,
MeshDNSResolutionFailing and their unit tests), plus
`aether_probe_request_duration_seconds`. Those are untouched by this commit. The only
log-grep observable documented anywhere for the soak is an AGENT line
(`e2e/soak/README.md`, the #682 dependency-set message), not a prober one. So the two
messages ("prober starting", "telemetry shutdown"), their attribute keys
(targets/rate/egress/error) and the "level"/"caller" JSON keys are all kept identical;
only slog's "timestamp"/"message" replace zap's "ts"/"msg", which nothing reads.
The level is unchanged too (zap.New() defaults to production/Info, as does
log.NewLogger(false)); the prober has no --debug flag and gains none here.

Measured (default config, `stat -Lc%s`, `go version -m | grep -c '^\tdep'`):

  prober  after the previous commit  19,007,404 B (18.13 MiB), 41 modules
          after this one            15,906,508 B (15.17 MiB), 23 modules
          vs. main @ 3c8f9c7        42,346,572 B (40.38 MiB), 78 modules  -> -62.4%

`bazel query 'deps(//prober/cmd/prober:prober)'` now matches `controller_runtime`
0 times (was 174) and `client_go` 0 times (was 2232). Its external `go_library`
closure, minus the 66 nogo x/tools targets present on every target in this repo, is
183 — the review's prediction was ~185.

Verification: `bazel build //... //test/e2e:e2e_test`; `bazel test //...
--test_output=errors` (99 targets, all pass, including the cni-install, prober and
mesh-dns container structure tests and both charts/prober chart tests); `bazel run
//:format.check`; `bazel build --config=lint
--@aspect_rules_lint//lint:fail_on_violation //...`; `bazel run //:gazelle` and
`bazel mod tidy` both no-churn; `scripts/go-deps-audit.sh` exit 0 (go-logr/logr
stays in the build list — the OTel SDK uses it).

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
@bpalermo
bpalermo merged commit f411112 into main Sep 16, 2026
20 checks passed
@bpalermo
bpalermo deleted the perf/772-b1-slim-cni-install-prober branch September 16, 2026 00:00
bpalermo added a commit that referenced this pull request Sep 16, 2026
…#772) (B2)

The aether-proxy pod ran the whole 65 MiB agent binary to supervise a child
process. `agent proxy-supervisor` was a subcommand of //agent/cmd/agent, so the
install-supervisor initContainer self-copied that binary onto the pod's shared
volume and the proxy container ran it as PID 1 — controller-runtime, client-go,
go-control-plane, SPIRE, Gateway API and miekg/dns, none of which it executes.
Its real work (//agent/internal/proxy/hotrestart + //common/readymarker) needs
24 modules and no Kubernetes, no xDS, no SPIRE.

That cost is paid in Go package init(), which runs before main() is entered, on
every supervisor start and every hot-restart epoch. #673 measured the same
binary's init() at >=31% of this container's CPU when it was additionally
re-exec'd as the readiness probe, and carved out //agent/cmd/proxy-ready for it.
The supervisor was the remaining instance of the pattern.

Measured (fastbuild, stripped; `go version -m` for modules; single-manifest
zstd tarball for the image, so it is the real pull cost):

  binary   //agent/cmd/proxy-supervisor  16,153,100 B (15.4 MiB), 24 modules
           //agent/cmd/agent             68,418,284 B (65.2 MiB), 105 modules
           -> -52,265,184 B (-49.8 MiB, -76.4%), -81 modules per proxy pod

  image    proxy-supervisor   8,188,416 B (7.81 MiB)
           agent             22,928,384 B (21.87 MiB)
           -> -14,739,968 B (-14.06 MiB, -64.3%)

What changed:

- New //agent/cmd/proxy-supervisor binary; the cobra command moves to
  //agent/internal/supervisorcmd behind New(version), with per-call flag state
  instead of package-level vars so the binary and the alias cannot share it.
  The only heavy coupling was supervisor.go:56 `manager.SetupLogging` — its one
  heavy act (ctrl.SetLogger) is meaningless in a process with no
  controller-runtime manager, so it is `log.Named(log.NewLogger(debug), name)`
  from //common/log (0 external modules). Log output is unchanged. main.go uses
  //common/signals (#777) rather than ctrl.SetupSignalHandler(), same semantics.
  Every flag name and default is unchanged — the chart passes them literally.

- `agent proxy-supervisor` is KEPT as a deprecated alias for one release. A
  forward rolling upgrade does not need it: the initContainer's image and the
  proxy container's command change atomically within one chart revision, and
  `supervisor-bin` is a per-pod emptyDir, so a surged-in successor stages its
  own binary and no old/new pair ever shares one. ROLLBACK does: `helm rollback`
  to a chart predating this re-issues `agent proxy-supervisor --install-path=…`
  against the deployed agent image, and without the alias that initContainer
  dies on "unknown command" and the rollback silently fails to take effect on
  the proxy DaemonSet — during an incident, which is when rollbacks happen. It
  costs nothing: hotrestart is agent-internal code the agent already linked, so
  the agent stays 105 modules / 65.2 MiB. The /proxy-ready tars_layer stays on
  the agent image for the same window; both are marked for removal together.

- New multi-arch image //agent/cmd/proxy-supervisor:proxy-supervisor_image
  (ghcr.io/bpalermo/aether/proxy-supervisor), carrying /proxy-ready as an extra
  layer. container_structure_test asserts both binaries and the absence of
  /agent. Wired into //charts/aether AETHER_IMAGES (that alone digest-pins the
  values.yaml placeholder and publishes it — publish.yaml needs no new step),
  //tools/buildid:release_build_ids (it is PID 1 of the proxy container, so the
  continuous profiler needs its symbols under a unique build-ID), the Makefile
  load/push targets, and every kind harness that pre-loads images (e2e.yaml's
  image_load loop, docker save list, both kind load loops and both helm install
  lines; e2e/multicluster_{config,replicator,waypoint}.sh).

- Chart: the initContainer runs `proxy.supervisor.image` with no subcommand
  argv, and the proxy container's command loses the `proxy-supervisor` word.
  proxy-ready is untouched, probe timings are untouched. The values.yaml note
  that this DaemonSet "is COUPLED TO THE AGENT IMAGE" is retired — it no longer
  is. Chart 0.92.21 -> 0.92.22.

- Guards, because the whole value of this binary is what it does not link:
  //agent/cmd/proxy-supervisor:deps_test scans the linked ELF for
  controller-runtime / client-go / apimachinery / gateway-api / go-control-plane
  / go-spiffe / miekg-dns and enforces a 24 MiB bloat ceiling (with a control
  test that the scan is not vacuous); scripts/check-proxy-supervisor-deps.sh is
  the build-graph half, wired into ci.yaml and main.yaml beside the existing
  proxy-ready guard. //agent/internal/supervisorcmd:supervisorcmd_test gains
  TestFlagsCoverTheChartContract, which reads the actual DaemonSet template and
  asserts every flag the chart passes is defined — the split had to preserve
  them byte-for-byte, and the failure mode otherwise is the whole proxy fleet
  exiting on "unknown flag" at rollout time.

Verification: `bazel build //... //test/e2e:e2e_test`; `bazel test //...`
(107/107 pass); `bazel run //:format.check`; `bazel build --config=lint
--@aspect_rules_lint//lint:fail_on_violation //...`; `bazel run //:gazelle` no
churn; `bazel mod tidy` idempotent; `scripts/go-deps-audit.sh` exit 0;
check-proxy-ready-deps.sh and check-proxy-supervisor-deps.sh both OK;
//tools/buildid:release_build_ids all-distinct. `helm template` before/after
diffs exactly and only: the chart version label, the initContainer image
(agent -> proxy-supervisor), the two removed `proxy-supervisor` argv words, and
comments. Smoke-tested both entrypoints: the new binary self-installs 16 MiB,
the alias warns and still self-installs 68 MiB.

CLUSTER VALIDATION (data-path adjacent — the supervisor drives hot restarts).
Needs a hitless proxy roll plus a delete-pod check on talos-main. Watch:
  - handoff duration per node (expect the usual 23-26 s; the 09-06 profiling
    pass measured a roll at exactly zero prober errors — anything above that is
    this change);
  - ready-marker transitions: the successor must HOLD readiness until it is the
    live epoch, so maxUnavailable:0 keeps the predecessor serving;
  - aether_supervisor_* counters keyed by k8s.node.name — no wedge, no
    unexpected epoch churn, and the OTLP push must still arrive (telemetry
    setup moved packages);
  - the external prober SLI across the roll: http_error and timeouts must stay
    at the no-roll baseline on both mesh and mesh_dns targets;
  - delete-pod: #771's --termination-grace fallback still drains Envoy when no
    successor can appear.
The initContainer is the new failure surface: if the proxy-supervisor image is
missing from the registry it CrashLoopBackOffs, and maxUnavailable:0 correctly
keeps the old pods serving — check `kubectl -n aether-system describe ds
aether-proxy` before concluding anything about the data path.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
bpalermo added a commit that referenced this pull request Sep 16, 2026
…#772) (B2) (#790)

The aether-proxy pod ran the whole 65 MiB agent binary to supervise a child
process. `agent proxy-supervisor` was a subcommand of //agent/cmd/agent, so the
install-supervisor initContainer self-copied that binary onto the pod's shared
volume and the proxy container ran it as PID 1 — controller-runtime, client-go,
go-control-plane, SPIRE, Gateway API and miekg/dns, none of which it executes.
Its real work (//agent/internal/proxy/hotrestart + //common/readymarker) needs
24 modules and no Kubernetes, no xDS, no SPIRE.

That cost is paid in Go package init(), which runs before main() is entered, on
every supervisor start and every hot-restart epoch. #673 measured the same
binary's init() at >=31% of this container's CPU when it was additionally
re-exec'd as the readiness probe, and carved out //agent/cmd/proxy-ready for it.
The supervisor was the remaining instance of the pattern.

Measured (fastbuild, stripped; `go version -m` for modules; single-manifest
zstd tarball for the image, so it is the real pull cost):

  binary   //agent/cmd/proxy-supervisor  16,153,100 B (15.4 MiB), 24 modules
           //agent/cmd/agent             68,418,284 B (65.2 MiB), 105 modules
           -> -52,265,184 B (-49.8 MiB, -76.4%), -81 modules per proxy pod

  image    proxy-supervisor   8,188,416 B (7.81 MiB)
           agent             22,928,384 B (21.87 MiB)
           -> -14,739,968 B (-14.06 MiB, -64.3%)

What changed:

- New //agent/cmd/proxy-supervisor binary; the cobra command moves to
  //agent/internal/supervisorcmd behind New(version), with per-call flag state
  instead of package-level vars so the binary and the alias cannot share it.
  The only heavy coupling was supervisor.go:56 `manager.SetupLogging` — its one
  heavy act (ctrl.SetLogger) is meaningless in a process with no
  controller-runtime manager, so it is `log.Named(log.NewLogger(debug), name)`
  from //common/log (0 external modules). Log output is unchanged. main.go uses
  //common/signals (#777) rather than ctrl.SetupSignalHandler(), same semantics.
  Every flag name and default is unchanged — the chart passes them literally.

- `agent proxy-supervisor` is KEPT as a deprecated alias for one release. A
  forward rolling upgrade does not need it: the initContainer's image and the
  proxy container's command change atomically within one chart revision, and
  `supervisor-bin` is a per-pod emptyDir, so a surged-in successor stages its
  own binary and no old/new pair ever shares one. ROLLBACK does: `helm rollback`
  to a chart predating this re-issues `agent proxy-supervisor --install-path=…`
  against the deployed agent image, and without the alias that initContainer
  dies on "unknown command" and the rollback silently fails to take effect on
  the proxy DaemonSet — during an incident, which is when rollbacks happen. It
  costs nothing: hotrestart is agent-internal code the agent already linked, so
  the agent stays 105 modules / 65.2 MiB. The /proxy-ready tars_layer stays on
  the agent image for the same window; both are marked for removal together.

- New multi-arch image //agent/cmd/proxy-supervisor:proxy-supervisor_image
  (ghcr.io/bpalermo/aether/proxy-supervisor), carrying /proxy-ready as an extra
  layer. container_structure_test asserts both binaries and the absence of
  /agent. Wired into //charts/aether AETHER_IMAGES (that alone digest-pins the
  values.yaml placeholder and publishes it — publish.yaml needs no new step),
  //tools/buildid:release_build_ids (it is PID 1 of the proxy container, so the
  continuous profiler needs its symbols under a unique build-ID), the Makefile
  load/push targets, and every kind harness that pre-loads images (e2e.yaml's
  image_load loop, docker save list, both kind load loops and both helm install
  lines; e2e/multicluster_{config,replicator,waypoint}.sh).

- Chart: the initContainer runs `proxy.supervisor.image` with no subcommand
  argv, and the proxy container's command loses the `proxy-supervisor` word.
  proxy-ready is untouched, probe timings are untouched. The values.yaml note
  that this DaemonSet "is COUPLED TO THE AGENT IMAGE" is retired — it no longer
  is. Chart 0.92.21 -> 0.92.22.

- Guards, because the whole value of this binary is what it does not link:
  //agent/cmd/proxy-supervisor:deps_test scans the linked ELF for
  controller-runtime / client-go / apimachinery / gateway-api / go-control-plane
  / go-spiffe / miekg-dns and enforces a 24 MiB bloat ceiling (with a control
  test that the scan is not vacuous); scripts/check-proxy-supervisor-deps.sh is
  the build-graph half, wired into ci.yaml and main.yaml beside the existing
  proxy-ready guard. //agent/internal/supervisorcmd:supervisorcmd_test gains
  TestFlagsCoverTheChartContract, which reads the actual DaemonSet template and
  asserts every flag the chart passes is defined — the split had to preserve
  them byte-for-byte, and the failure mode otherwise is the whole proxy fleet
  exiting on "unknown flag" at rollout time.

Verification: `bazel build //... //test/e2e:e2e_test`; `bazel test //...`
(107/107 pass); `bazel run //:format.check`; `bazel build --config=lint
--@aspect_rules_lint//lint:fail_on_violation //...`; `bazel run //:gazelle` no
churn; `bazel mod tidy` idempotent; `scripts/go-deps-audit.sh` exit 0;
check-proxy-ready-deps.sh and check-proxy-supervisor-deps.sh both OK;
//tools/buildid:release_build_ids all-distinct. `helm template` before/after
diffs exactly and only: the chart version label, the initContainer image
(agent -> proxy-supervisor), the two removed `proxy-supervisor` argv words, and
comments. Smoke-tested both entrypoints: the new binary self-installs 16 MiB,
the alias warns and still self-installs 68 MiB.

CLUSTER VALIDATION (data-path adjacent — the supervisor drives hot restarts).
Needs a hitless proxy roll plus a delete-pod check on talos-main. Watch:
  - handoff duration per node (expect the usual 23-26 s; the 09-06 profiling
    pass measured a roll at exactly zero prober errors — anything above that is
    this change);
  - ready-marker transitions: the successor must HOLD readiness until it is the
    live epoch, so maxUnavailable:0 keeps the predecessor serving;
  - aether_supervisor_* counters keyed by k8s.node.name — no wedge, no
    unexpected epoch churn, and the OTLP push must still arrive (telemetry
    setup moved packages);
  - the external prober SLI across the roll: http_error and timeouts must stay
    at the no-roll baseline on both mesh and mesh_dns targets;
  - delete-pod: #771's --termination-grace fallback still drains Envoy when no
    successor can appear.
The initContainer is the new failure surface: if the proxy-supervisor image is
missing from the registry it CrashLoopBackOffs, and maxUnavailable:0 correctly
keeps the old pods serving — check `kubectl -n aether-system describe ds
aether-proxy` before concluding anything about the data path.


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

Co-authored-by: Claude Fable 5.1 <[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