File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ import (
42
42
"k8s.io/client-go/tools/cache"
43
43
"k8s.io/klog/v2"
44
44
45
+ "github.com/kcp-dev/kcp/pkg/apis/tenancy"
45
46
metadataclient "github.com/kcp-dev/kcp/pkg/metadata"
46
47
)
47
48
@@ -425,6 +426,15 @@ func (d *DynamicDiscoverySharedInformerFactory) updateInformers() {
425
426
group := parts [0 ]
426
427
version := parts [1 ]
427
428
resource := parts [2 ]
429
+
430
+ // Don't start a dynamic informer for tenancy.kcp.dev/v1beta1 Workspaces. These are a virtual projection of
431
+ // data from tenancy.kcp.dev/v1alpha1 ClusterWorkspaces. Starting an informer for them causes problems when
432
+ // the virtual-workspaces server is deployed separately. See https://github.com/kcp-dev/kcp/issues/1654 for
433
+ // more details.
434
+ if group == tenancy .GroupName && version == "v1beta1" && resource == "workspaces" {
435
+ continue
436
+ }
437
+
428
438
latest [gvrFor (group , version , resource )] = struct {}{}
429
439
}
430
440
You can’t perform that action at this time.
0 commit comments