Task · FMO-0001

CollectorDiscovery pagination: adopt page_token/page_size when the Fleet SDK ships it

Status
Parked
Labels
blocked-upstream, discovery, scale
Updated
2026-08-14

Description

PERF-02 from the 2026-04-28 production-readiness audit, still PARTIAL. Fleet Management SDK’s ListCollectorsRequest does not expose page_token or page_size, so a broad CollectorDiscovery selector in a 30k-collector fleet pulls every collector in a single response (roughly 30 MB). Mitigations already landed and are NOT the fix: an admission Warning when spec.selector is empty, the sharding pattern documented in AGENTS.md, and a pagination adoption note in pkg/fleetclient/collector.go (commit d605701).

RESUME BOUNDARY: blocked until the Fleet Management Go SDK’s ListCollectorsRequest gains page_token and page_size fields. At that point pkg/fleetclient/collector.go adopts them transparently - no CRD change is required, so no API version bump and no migration. Check the SDK’s ListCollectorsRequest for those fields before assuming this is still blocked.

Acceptance Criteria

Definition of Done

View the source file on GitHub