---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  labels:
    app.kubernetes.io/component: kmm
    app.kubernetes.io/instance: amd-gpu-operator
    app.kubernetes.io/name: kmm
    app.kubernetes.io/part-of: kmm
    app.kubernetes.io/version: v20240618-v2.1.1
  name: amd-gpu-operator-kmm-manager-role
rules:
  - apiGroups:
      - apps
    resources:
      - daemonsets
    verbs:
      - create
      - delete
      - get
      - list
      - patch
      - watch
  - apiGroups:
      - cluster.open-cluster-management.io
    resources:
      - clusterclaims
    verbs:
      - create
      - get
      - list
      - watch
  - apiGroups:
      - cluster.open-cluster-management.io
    resourceNames:
      - kernel-versions.kmm.node.kubernetes.io
    resources:
      - clusterclaims
    verbs:
      - delete
      - patch
      - update
  - apiGroups:
      - ""
    resources:
      - configmaps
      - secrets
      - serviceaccounts
    verbs:
      - get
      - list
      - watch
  - apiGroups:
      - ""
    resources:
      - namespaces
      - nodes
    verbs:
      - get
      - list
      - patch
      - watch
  - apiGroups:
      - ""
    resources:
      - pods
    verbs:
      - create
      - delete
      - get
      - list
      - patch
      - watch
  - apiGroups:
      - kmm.sigs.x-k8s.io
    resources:
      - modules
    verbs:
      - get
      - list
      - patch
      - update
      - watch
  - apiGroups:
      - kmm.sigs.x-k8s.io
    resources:
      - modules/status
      - preflightvalidations/status
    verbs:
      - get
      - patch
      - update
  - apiGroups:
      - kmm.sigs.x-k8s.io
    resources:
      - nodemodulesconfigs
    verbs:
      - create
      - delete
      - get
      - list
      - patch
      - watch
  - apiGroups:
      - kmm.sigs.x-k8s.io
    resources:
      - nodemodulesconfigs/status
    verbs:
      - patch
  - apiGroups:
      - kmm.sigs.x-k8s.io
    resources:
      - preflightvalidations
    verbs:
      - create
      - delete
      - get
      - list
      - patch
      - update
      - watch
