Skip to content

Commit

Permalink
Merge pull request #2847 from faroshq/add.nonResourceURL
Browse files Browse the repository at this point in the history
🐛  Add verb `access`to syncer
  • Loading branch information
openshift-merge-robot authored Feb 28, 2023
2 parents 771cfc8 + 2e5a249 commit df364a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/cliplugins/workload/plugin/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit df364a2

Please sign in to comment.