Skip to content

Commit 15d8125

Browse files
committed
drop mount cross-shard support
1 parent 55c43ad commit 15d8125

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

pkg/reconciler/tenancy/workspacemounts/workspacemounts_controller.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,6 @@ func (c *Controller) enqueuePotentiallyMountResource(gvr schema.GroupVersionReso
280280
// InstallIndexers adds the additional indexers that this controller requires to the informers.
281281
func InstallIndexers(
282282
workspaceInformer tenancyv1alpha1informers.WorkspaceClusterInformer,
283-
globalWorkspaceInformer tenancyv1alpha1informers.WorkspaceClusterInformer,
284283
) {
285284
indexers.AddIfNotPresentOrDie(workspaceInformer.Informer().GetIndexer(), cache.Indexers{
286285
workspaceMountsReferenceIndex: indexWorkspaceByMountObject,
@@ -289,7 +288,4 @@ func InstallIndexers(
289288
indexers.AddIfNotPresentOrDie(workspaceInformer.Informer().GetIndexer(), cache.Indexers{
290289
workspaceByURL: indexWorkspaceByURL,
291290
})
292-
indexers.AddIfNotPresentOrDie(globalWorkspaceInformer.Informer().GetIndexer(), cache.Indexers{
293-
workspaceByURL: indexWorkspaceByURL,
294-
})
295291
}

pkg/server/controllers.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1645,7 +1645,6 @@ func (s *Server) addIndexersToInformers(_ context.Context) map[schema.GroupVersi
16451645
)
16461646
workspacemounts.InstallIndexers(
16471647
s.KcpSharedInformerFactory.Tenancy().V1alpha1().Workspaces(),
1648-
s.CacheKcpSharedInformerFactory.Tenancy().V1alpha1().Workspaces(),
16491648
)
16501649
extraannotationsync.InstallIndexers(
16511650
s.KcpSharedInformerFactory.Apis().V1alpha2().APIExports(),

0 commit comments

Comments
 (0)