---
apiVersion: v1
kind: ServiceAccount
metadata:
  labels:
    created-by-dynamic-class-creator: 'Yes'
  name: test-checkup-framework-sa
  namespace: test-checkup-framework
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  labels:
    created-by-dynamic-class-creator: 'Yes'
  name: test-checkup-framework-resources-role
  namespace: test-checkup-framework
rules:
- apiGroups:
  - kubevirt.io
  resources:
  - virtualmachineinstances
  verbs:
  - get
  - create
  - delete
- apiGroups:
  - subresources.kubevirt.io
  resources:
  - virtualmachineinstances/console
  verbs:
  - get
- apiGroups:
  - k8s.cni.cncf.io
  resources:
  - network-attachment-definitions
  verbs:
  - get
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  labels:
    created-by-dynamic-class-creator: 'Yes'
  name: test-checkup-framework-resources-role
  namespace: test-checkup-framework
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: Role
  name: test-checkup-framework-resources-role
subjects:
- kind: ServiceAccount
  name: test-checkup-framework-sa
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  labels:
    created-by-dynamic-class-creator: 'Yes'
  name: test-checkup-framework-configmap-role
  namespace: test-checkup-framework
rules:
- apiGroups:
  - ''
  resources:
  - configmaps
  verbs:
  - get
  - update
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  labels:
    created-by-dynamic-class-creator: 'Yes'
  name: test-checkup-framework-configmap-role
  namespace: test-checkup-framework
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: Role
  name: test-checkup-framework-configmap-role
subjects:
- kind: ServiceAccount
  name: test-checkup-framework-sa
