Skip to content

Commit 37bc12a

Browse files
committed
fix rbac cm permissions
1 parent a525578 commit 37bc12a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • packages/system/backupstrategy-controller/templates

‎packages/system/backupstrategy-controller/templates/rbac.yaml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ rules:
2626
- apiGroups: [""]
2727
resources: ["pods"]
2828
verbs: ["get", "list", "watch"]
29+
# ConfigMaps: controller-runtime cache requires cluster-scoped list/watch;
30+
# create/update/delete is scoped to cozy-velero via the Role below.
31+
- apiGroups: [""]
32+
resources: ["configmaps"]
33+
verbs: ["get", "list", "watch"]
2934
# Application refs (e.g. VMInstance) for backup/restore scope
3035
- apiGroups: ["apps.cozystack.io"]
3136
resources: ["*"]

0 commit comments

Comments
 (0)