Skip to content

Commit 947ff85

Browse files
committed
Add ClusterRole for kvm-ha-service
The kvm-ha-service requires direct access to the Hypervisor CRD to implement HA-driven self-enable and disable logic. Permissions granted: - get/list/watch/update on hypervisors: to read spec.highAvailability and set spec.maintenance=ha - get/update on hypervisors/status: to set the HypervisorDisabled status condition (Succeeded and ReadyEvicted reasons)
1 parent 8854ff6 commit 947ff85

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRole
3+
metadata:
4+
name: {{ include "openstack-hypervisor-operator.fullname" . }}-ha-service-role
5+
labels:
6+
{{- include "openstack-hypervisor-operator.labels" . | nindent 4 }}
7+
rules:
8+
- apiGroups:
9+
- kvm.cloud.sap
10+
resources:
11+
- hypervisors
12+
verbs:
13+
- get
14+
- list
15+
- watch
16+
- update
17+
- apiGroups:
18+
- kvm.cloud.sap
19+
resources:
20+
- hypervisors/status
21+
verbs:
22+
- get
23+
- update

0 commit comments

Comments
 (0)