Skip to content

Commit 42b9e0c

Browse files
mnenciaNoOverflow
authored andcommitted
chore: review
Signed-off-by: Marco Nenciarini <[email protected]>
1 parent f0e1ad9 commit 42b9e0c

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

config/rbac/role.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ rules:
4848
- get
4949
- list
5050
- watch
51+
- apiGroups:
52+
- postgresql.cnpg.io
53+
resources:
54+
- clusters/finalizers
55+
verbs:
56+
- update
5157
- apiGroups:
5258
- rbac.authorization.k8s.io
5359
resources:
@@ -60,9 +66,3 @@ rules:
6066
- patch
6167
- update
6268
- watch
63-
- apiGroups:
64-
- postgresql.cnpg.io
65-
resources:
66-
- clusters/finalizers
67-
verbs:
68-
- update

internal/controller/objectstore_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ type ObjectStoreReconciler struct {
3838
// +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=roles,verbs=create;patch;update;get;list;watch
3939
// +kubebuilder:rbac:groups="",resources=secrets,verbs=create;list;get;watch;delete
4040
// +kubebuilder:rbac:groups=postgresql.cnpg.io,resources=backups,verbs=get;list;watch
41+
// +kubebuilder:rbac:groups=postgresql.cnpg.io,resources=clusters/finalizers,verbs=update
4142
// +kubebuilder:rbac:groups=barmancloud.cnpg.io,resources=objectstores,verbs=get;list;watch;create;update;patch;delete
4243
// +kubebuilder:rbac:groups=barmancloud.cnpg.io,resources=objectstores/status,verbs=get;update;patch
4344
// +kubebuilder:rbac:groups=barmancloud.cnpg.io,resources=objectstores/finalizers,verbs=update

0 commit comments

Comments
 (0)