Files
open-cluster-management/deploy/spoke/clusterrole_binding_execution-admin.yaml
Qing Hao 718605172f split work permissions (#142)
* split work permissions

Signed-off-by: haoqing0110 <qhao@redhat.com>

* add more comments

Signed-off-by: haoqing0110 <qhao@redhat.com>
2022-06-27 14:35:25 +00:00

16 lines
612 B
YAML

# ClusterRoleBinding for work execution permissions.
# TODO: replace this with user defined execution permissions.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: open-cluster-management:work:execution-admin
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
# We deploy a controller that could work with permission lower than cluster-admin, the tradeoff is
# responsivity because list/watch cannot be maintained over too many namespaces.
name: admin
subjects:
- kind: ServiceAccount
name: work-agent-sa
namespace: open-cluster-management-agent