Skip to content

refactor(constants): split common/constants into domain-focused sub-packages #542

Closed

Description

@bpalermo

common/constants exports ~70 constants (annotations, labels, mesh, proxy, registry, CNI) to 21 importer packages; most importers use a small slice. Zero deps (good) but maximal fan-in and change blast radius.

Fix: split by domain (e.g. common/constants/annotations, labels, mesh; move proxy-only constants under agent/internal/xds/...). Purely mechanical: move consts, fix imports, make gazelle. Keep exported names stable where possible to minimize churn; no value changes. Coordinate: land AFTER the in-flight perf PRs to avoid import-line conflicts.

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