---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: model-registry-ui-services-reader
rules:
- apiGroups:
    - ''
  resources:
    - services
  verbs:
    - get
    - list
    - watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: model-registry-ui-services-reader-binding
subjects:
- kind: ServiceAccount
  name: model-registry-ui
roleRef:
  kind: ClusterRole
  name: model-registry-ui-services-reader
  apiGroup: rbac.authorization.k8s.io
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: model-registry-retrieve-clusterrolebindings
rules:
- apiGroups:
  - rbac.authorization.k8s.io
  resources:
  - clusterrolebindings
  verbs:
  - get
  - list
  - watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: model-registry-retrieve-clusterrolebindings-binding
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: model-registry-retrieve-clusterrolebindings
subjects:
- kind: ServiceAccount
  name: model-registry-ui
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: model-registry-create-sars
rules:
- apiGroups:
  - authorization.k8s.io
  resources:
  - subjectaccessreviews
  verbs:
  - create
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: model-registry-create-sars-binding
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: model-registry-create-sars
subjects:
- kind: ServiceAccount
  name: model-registry-ui
