From 2e5a24910192fc9fe8a6368bc155ed0392b37c3e Mon Sep 17 00:00:00 2001 From: Mangirdas Judeikis Date: Mon, 27 Feb 2023 16:49:23 +0200 Subject: [PATCH] Add verb `access`to syncer --- pkg/cliplugins/workload/plugin/sync.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/cliplugins/workload/plugin/sync.go b/pkg/cliplugins/workload/plugin/sync.go index 7b151cb2995..11fcffcd80d 100644 --- a/pkg/cliplugins/workload/plugin/sync.go +++ b/pkg/cliplugins/workload/plugin/sync.go @@ -548,6 +548,10 @@ func (o *SyncOptions) enableSyncerForWorkspace(ctx context.Context, config *rest APIGroups: []string{apiresourcev1alpha1.SchemeGroupVersion.Group}, Resources: []string{"apiresourceimports"}, }, + { + Verbs: []string{"access"}, + NonResourceURLs: []string{"/"}, + }, } cr, err := kubeClient.RbacV1().ClusterRoles().Get(ctx,