apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: ansible-runner-clusterrole
  namespace: ansible-runner
rules:
  - apiGroups:
      - "*"
    resources:
      - pods
      - services
      - secrets
      - configmaps
      - routes
    verbs:
      - "*"
  - apiGroups:
      - observability.open-cluster-management.io
    resources:
      - multiclusterobservabilities
    verbs:
      - "*"
  - apiGroups:
      - console.openshift.io
    resources:
      - consolelinks
    verbs:
      - "*"
  - apiGroups:
      - operator.open-cluster-management.io
    resources:
      - multiclusterhubs
    verbs:
      - get
      - list
      - watch
  - apiGroups:
      - apps
      - extensions
    resources:
      - deployments
    verbs:
      - list
      - get
      - watch
      - update
      - patch
  - apiGroups:
      - config.openshift.io
    resources:
      - infrastructures
    verbs:
      - get
      - list
      - watch
  - apiGroups:
      - machine.openshift.io
    resources:
      - machinesets
    verbs:
      - "*"
  - apiGroups:
      - objectbucket.io
    resources:
      - objectbucketclaims
    verbs:
      - "*"