Skip to content

Commit f0658aa

Browse files
committed
fix rbac for migration
1 parent 5488242 commit f0658aa

7 files changed

Lines changed: 50 additions & 0 deletions

File tree

config/rbac/cluster/role.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,14 @@ rules:
191191
- list
192192
- patch
193193
- watch
194+
- apiGroups:
195+
- postgres-operator.crunchydata.com
196+
resources:
197+
- postgresclusters
198+
verbs:
199+
- get
200+
- list
201+
- watch
194202
- apiGroups:
195203
- rbac.authorization.k8s.io
196204
resources:

config/rbac/namespace/role.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,14 @@ rules:
191191
- list
192192
- patch
193193
- watch
194+
- apiGroups:
195+
- postgres-operator.crunchydata.com
196+
resources:
197+
- postgresclusters
198+
verbs:
199+
- get
200+
- list
201+
- watch
194202
- apiGroups:
195203
- rbac.authorization.k8s.io
196204
resources:

deploy/bundle.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69412,6 +69412,14 @@ rules:
6941269412
- list
6941369413
- patch
6941469414
- watch
69415+
- apiGroups:
69416+
- postgres-operator.crunchydata.com
69417+
resources:
69418+
- postgresclusters
69419+
verbs:
69420+
- get
69421+
- list
69422+
- watch
6941569423
- apiGroups:
6941669424
- rbac.authorization.k8s.io
6941769425
resources:

deploy/cw-bundle.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69412,6 +69412,14 @@ rules:
6941269412
- list
6941369413
- patch
6941469414
- watch
69415+
- apiGroups:
69416+
- postgres-operator.crunchydata.com
69417+
resources:
69418+
- postgresclusters
69419+
verbs:
69420+
- get
69421+
- list
69422+
- watch
6941569423
- apiGroups:
6941669424
- rbac.authorization.k8s.io
6941769425
resources:

deploy/cw-rbac.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,14 @@ rules:
195195
- list
196196
- patch
197197
- watch
198+
- apiGroups:
199+
- postgres-operator.crunchydata.com
200+
resources:
201+
- postgresclusters
202+
verbs:
203+
- get
204+
- list
205+
- watch
198206
- apiGroups:
199207
- rbac.authorization.k8s.io
200208
resources:

deploy/rbac.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,14 @@ rules:
195195
- list
196196
- patch
197197
- watch
198+
- apiGroups:
199+
- postgres-operator.crunchydata.com
200+
resources:
201+
- postgresclusters
202+
verbs:
203+
- get
204+
- list
205+
- watch
198206
- apiGroups:
199207
- rbac.authorization.k8s.io
200208
resources:

percona/controller/pgcluster/owner_ref_migration.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ import (
1818
"github.com/pkg/errors"
1919
)
2020

21+
//+kubebuilder:rbac:groups="postgres-operator.crunchydata.com",resources="postgresclusters",verbs={get,list,watch}
22+
2123
var childKinds = []schema.GroupVersionKind{
2224
{Group: "apps", Version: "v1", Kind: "StatefulSet"},
2325
{Group: "apps", Version: "v1", Kind: "Deployment"},

0 commit comments

Comments
 (0)