Skip to content

[Umbrella] Use index to optimize list operations #6530

@zach593

Description

@zach593

This issue documents and tracks the currently known list operations that could be optimized by using an index. However, not every list operation may be worth optimizing.
For those that can be optimized, some list operations may be able to share the same index.

File Path Function Name List Target
pkg/scheduler/scheduler.go establishEstimatorConnections() cluster
pkg/scheduler/scheduler.go HasTerminatingTargetClusters() cluster
pkg/controllers/unifiedauth/unified_auth_controller.go findRBACSubjectsWithCluster() clusterRole
pkg/controllers/taint/clustertaintpolicy_controller.go Reconcile() clusterTaintPolicy
pkg/controllers/remediation/util.go getClusterRelatedRemedies() remedy
pkg/controllers/multiclusterservice/mcs_controller.go clusterMapFunc() MultiClusterService
pkg/controllers/multiclusterservice/mcs_controller.go cleanProviderEndpointSliceWork() work
pkg/controllers/multiclusterservice/endpointslice_dispatch_controller.go cleanupEndpointSliceFromConsumerClusters() work
pkg/controllers/multiclusterservice/endpointslice_dispatch_controller.go cleanOrphanDispatchedEndpointSlice() work
pkg/controllers/multiclusterservice/endpointslice_dispatch_controller.go getClusterEndpointSliceWorks() work
pkg/controllers/multiclusterservice/endpointslice_dispatch_controller.go newClusterFunc() MultiClusterService
pkg/controllers/multiclusterservice/endpointslice_collect_controller.go collectTargetEndpointSlice() endpointslice
pkg/controllers/multiclusterservice/endpointslice_collect_controller.go handleEndpointSliceEvent() work
pkg/controllers/mcs/service_export_controller.go cleanupWorkWithServiceExportDelete() work
pkg/controllers/mcs/service_export_controller.go removeOrphanWork() work
pkg/controllers/mcs/service_export_controller.go reportEndpointSliceWithServiceExportCreate() endpointSlice
pkg/controllers/mcs/service_export_controller.go enqueueReportedEpsServiceExport() work
pkg/controllers/federatedresourcequota/federated_resource_quota_sync_controller.go Reconcile() cluster
pkg/controllers/federatedresourcequota/federated_resource_quota_sync_controller.go cleanUpOrphanWorks() work
pkg/controllers/federatedresourcequota/federated_resource_quota_sync_controller.go cleanUpWorks() work
pkg/controllers/federatedresourcequota/federated_resource_quota_sync_controller.go SetupWithManager() FederatedResourceQuota
pkg/controllers/federatedhpa/federatedhpa_controller.go getBindingByLabel() resourceBinding
pkg/detector/policy.go listCPPDerivedCRBs() ClusterResourceBinding
pkg/detector/policy.go listPPDerivedRBs() ResourceBinding
pkg/detector/policy.go listCPPDerivedRBs() ResourceBinding

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