Skip to content

refactor(xds): split agent/internal/xds/cache into per-resource sub-packages #544

Closed

Description

@bpalermo

agent/internal/xds/cache is 13 files / ~4.9K non-test lines mixing listener, cluster, endpoint, route, capture, gamma, edge, l4route, waypoint, and secret snapshot building plus orchestration, with ~60 Envoy proto imports.

Fix: mechanical package split by resource/concern with a thin snapshot orchestrator; NO behavior change. Each sub-package imports only the protos it needs. Preserve the unified-snapshot model and snapshotMu semantics exactly (see snapshot.go:30-38 — partial per-type snapshots clobber other types, the #70-#75 bug class).

Sequencing: MUST land last, after the cache perf PRs (mTLS entry caching, dependency-set memoization, GAMMA write-time precompute) to avoid conflicting with changes inside these files.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions