Skip to content

Commit

Permalink
Update cluster-auth-manager permissions (#8)
Browse files Browse the repository at this point in the history
Signed-off-by: Rokibul Hasan <[email protected]>
  • Loading branch information
RokibulHasan7 authored Feb 27, 2024
1 parent 5925a5e commit 7fe88d0
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 4 deletions.
28 changes: 24 additions & 4 deletions charts/cluster-auth-manager/templates/k8s/cluster_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@ metadata:
name: cluster-auth-manager
rules:
- apiGroups: [""]
resources: ["configmaps", "events", "namespace", "secrets"]
resources: ["configmaps", "events", "namespaces", "secrets", "serviceaccounts"]
verbs: ["get", "list", "watch", "create", "update", "delete", "deletecollection", "patch"]
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["get", "list", "watch", "create", "update", "patch"]
- apiGroups: ["rbac.authorization.k8s.io"]
resources: ["roles", "rolebindings"]
verbs: ["get", "list", "watch", "create", "update", "delete"]
- apiGroups: ["authorization.k8s.io"]
resources: ["subjectaccessreviews"]
verbs: ["get", "create"]
Expand Down Expand Up @@ -54,3 +51,26 @@ rules:
- "clustergateways/health"
- "clustergateways/proxy"
verbs: [ "*" ]
- apiGroups: [ "authorization.k8s.appscode.com" ]
resources:
- "managedclustersetrolebindings"
- "managedclusterrolebindings"
- "managedclusterroles"
verbs: [ "*" ]
- apiGroups: [ "authentication.open-cluster-management.io" ]
resources:
- "managedserviceaccounts"
verbs: [ "*" ]
- apiGroups:
- rbac.authorization.k8s.io
resources:
- clusterroles
- clusterrolebindings
- roles
- rolebindings
verbs: [ "*" ]
- apiGroups: [ "authentication.k8s.appscode.com" ]
resources:
- users
- groups
verbs: [ "*" ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: cluster-gateway-permission
rules:
- apiGroups:
- cluster.core.oam.dev
resources:
- clustergateways/health
- clustergateways/proxy
verbs:
- "*"

0 comments on commit 7fe88d0

Please sign in to comment.