Code refactoring for bpa operator
[icn.git] / cmd / bpa-operator / deploy / role.yaml
index fbe90b2..022cbfe 100644 (file)
@@ -1,5 +1,5 @@
 apiVersion: rbac.authorization.k8s.io/v1
-kind: Role
+kind: ClusterRole
 metadata:
   creationTimestamp: null
   name: bpa-operator
@@ -14,6 +14,7 @@ rules:
   - events
   - configmaps
   - secrets
+  - namespaces
   verbs:
   - '*'
 - apiGroups:
@@ -58,3 +59,9 @@ rules:
   - '*'
   verbs:
   - '*'
+- apiGroups:
+  - metal3.io
+  resources:
+  - baremetalhosts
+  verbs:
+  - '*'