# This rule is not used by the project workstation-controller itself.
# It is provided to allow the cluster admin to help manage permissions for users.
#
# Grants read-only access to workstation.wugi.info resources.
# This role is intended for users who need visibility into these resources
# without permissions to modify them. It is ideal for monitoring purposes and limited-access viewing.

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  labels:
    app.kubernetes.io/name: workstation-controller
    app.kubernetes.io/managed-by: kustomize
  name: workstation-viewer-role
rules:
- apiGroups:
  - workstation.wugi.info
  resources:
  - workstations
  verbs:
  - get
  - list
  - watch
- apiGroups:
  - workstation.wugi.info
  resources:
  - workstations/status
  verbs:
  - get
