Skip to content

Commit

Permalink
Add permissions for clusterlifecycle state metrics (#1175)
Browse files Browse the repository at this point in the history
Signed-off-by: zhujian <[email protected]>
  • Loading branch information
zhujian7 authored Jan 6, 2025
1 parent 029beee commit dd198ce
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ rules:
- events
verbs:
- create
- delete
- get
- list
- patch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,15 @@ rules:
- apiGroups: ["work.open-cluster-management.io"]
resources: ["manifestworks"]
verbs: ["get","list","watch"]
# Allow hub to patch manifestwroks annotation
- apiGroups: ["work.open-cluster-management.io"]
resources: ["manifestworks"]
verbs: ["patch"]
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["get","create","update","patch","delete"]
- apiGroups: [""]
resources: ["events"]
verbs: ["get","create","update","patch","delete"]
- nonResourceURLs: ["/metrics"]
verbs: ["get"]
verbs: ["get"]
3 changes: 3 additions & 0 deletions pkg/templates/rbac_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dd198ce

Please sign in to comment.