Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

Commit 6efa293

Browse files
committed
Add required apiexports rbac permissions
1 parent 7448a5f commit 6efa293

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

config/rbac/role.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,6 @@ rules:
9191
- get
9292
- list
9393
- watch
94-
- apiGroups:
95-
- apis.kcp.dev
96-
resources:
97-
- apiexports/status
98-
verbs:
99-
- get
10094
- apiGroups:
10195
- data.my.domain
10296
resources:

main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ func main() {
158158
}
159159
}
160160

161+
// +kubebuilder:rbac:groups="apis.kcp.dev",resources=apiexports,verbs=get;list;watch
162+
161163
// restConfigForAPIExport returns a *rest.Config properly configured to communicate with the endpoint for the
162164
// APIExport's virtual workspace.
163165
func restConfigForAPIExport(ctx context.Context, cfg *rest.Config, apiExportName string) (*rest.Config, error) {

0 commit comments

Comments
 (0)