kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: vm-manager-role
  uid: 637e2e37-2dea-4ad0-8825-1856751b705f
  resourceVersion: '2917198'
  creationTimestamp: '2025-11-05T18:03:05Z'
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"rbac.authorization.k8s.io/v1","kind":"ClusterRole","metadata":{"annotations":{},"name":"vm-manager-role"},"rules":[{"apiGroups":["subresources.kubevirt.io"],"resources":["virtualmachineinstances/console","virtualmachineinstances/vnc"],"verbs":["get"]},{"apiGroups":["subresources.kubevirt.io"],"resources":["virtualmachines/start","virtualmachines/stop","virtualmachines/restart"],"verbs":["update"]},{"apiGroups":["kubevirt.io"],"resources":["virtualmachines"],"verbs":["get","list","watch"]},{"apiGroups":["config.openshift.io"],"resources":["*"],"verbs":["get","list"]}]}
  managedFields:
    - manager: kubectl-client-side-apply
      operation: Update
      apiVersion: rbac.authorization.k8s.io/v1
      time: '2025-11-05T18:17:09Z'
      fieldsType: FieldsV1
      fieldsV1:
        'f:metadata':
          'f:annotations':
            .: {}
            'f:kubectl.kubernetes.io/last-applied-configuration': {}
        'f:rules': {}
rules:
  - verbs:
      - get
    apiGroups:
      - subresources.kubevirt.io
    resources:
      - virtualmachineinstances/console
      - virtualmachineinstances/vnc
  - verbs:
      - update
    apiGroups:
      - subresources.kubevirt.io
    resources:
      - virtualmachines/start
      - virtualmachines/stop
      - virtualmachines/restart
  - verbs:
      - get
      - list
      - watch
    apiGroups:
      - kubevirt.io
    resources:
      - virtualmachines
  - verbs:
      - get
      - list
    apiGroups:
      - config.openshift.io
    resources:
      - '*'
