Skip to content

Handlers that enqueue all ClusterRoles / all LogicalClusters on the shard #4396

Open

Description

@maxpain

Every LogicalCluster add lists and enqueues all ClusterRoles on the shard (core/replicateclusterrole → EnqueueClusterRoles), and every APIExport or WorkspaceType event with resources/default bindings enqueues all LogicalClusters on the shard, bound or not (defaultapibindinglifecycle, as its comment says).

With 1e5 workspaces and a few ClusterRoles each, shard start and workspace creation become quadratic, and a single platform APIExport update requeues the whole shard.

Suggestion: enqueue only the new cluster's ClusterRoles; index LogicalClusters by the types/exports they actually use.

Activity

  1. added
    kind/bugCategorizes issue or PR as related to a bug.
    on Sep 28, 2026
  2. added theissue type on Sep 28, 2026
  3. added this to the v0.35 milestone on Sep 28, 2026
  4. PragalvaXFREZ commented on Oct 13, 2026

    @PragalvaXFREZ

    Hi, can I work on the ClusterRole part of #4396? I think we can scope the requeue to the affected logical cluster and add tests for it first. We could handle the APIExport/WorkspaceType changes in a follow-up.

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

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    Projects

    • Status
      Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions