Skip to content

Commit 25b39a7

Browse files
committed
fix rbac
1 parent ea0378a commit 25b39a7

File tree

7 files changed

+61
-0
lines changed

7 files changed

+61
-0
lines changed

config/rbac/cluster/role.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,16 @@ rules:
9494
- list
9595
- patch
9696
- watch
97+
- apiGroups:
98+
- policy
99+
resources:
100+
- poddisruptionbudgets
101+
verbs:
102+
- create
103+
- get
104+
- list
105+
- patch
106+
- update
97107
- apiGroups:
98108
- ps.percona.com
99109
resources:

config/rbac/role.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,16 @@ rules:
9494
- list
9595
- patch
9696
- watch
97+
- apiGroups:
98+
- policy
99+
resources:
100+
- poddisruptionbudgets
101+
verbs:
102+
- create
103+
- get
104+
- list
105+
- patch
106+
- update
97107
- apiGroups:
98108
- ps.percona.com
99109
resources:

deploy/bundle.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11679,6 +11679,16 @@ rules:
1167911679
- list
1168011680
- patch
1168111681
- watch
11682+
- apiGroups:
11683+
- policy
11684+
resources:
11685+
- poddisruptionbudgets
11686+
verbs:
11687+
- create
11688+
- get
11689+
- list
11690+
- patch
11691+
- update
1168211692
- apiGroups:
1168311693
- ps.percona.com
1168411694
resources:

deploy/cw-bundle.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11679,6 +11679,16 @@ rules:
1167911679
- list
1168011680
- patch
1168111681
- watch
11682+
- apiGroups:
11683+
- policy
11684+
resources:
11685+
- poddisruptionbudgets
11686+
verbs:
11687+
- create
11688+
- get
11689+
- list
11690+
- patch
11691+
- update
1168211692
- apiGroups:
1168311693
- ps.percona.com
1168411694
resources:

deploy/cw-rbac.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,16 @@ rules:
135135
- list
136136
- patch
137137
- watch
138+
- apiGroups:
139+
- policy
140+
resources:
141+
- poddisruptionbudgets
142+
verbs:
143+
- create
144+
- get
145+
- list
146+
- patch
147+
- update
138148
- apiGroups:
139149
- ps.percona.com
140150
resources:

deploy/rbac.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,16 @@ rules:
135135
- list
136136
- patch
137137
- watch
138+
- apiGroups:
139+
- policy
140+
resources:
141+
- poddisruptionbudgets
142+
verbs:
143+
- create
144+
- get
145+
- list
146+
- patch
147+
- update
138148
- apiGroups:
139149
- ps.percona.com
140150
resources:

pkg/controller/ps/controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ type PerconaServerMySQLReconciler struct {
7777
//+kubebuilder:rbac:groups="",resources=configmaps;services;secrets,verbs=get;list;watch;create;update;patch;delete
7878
//+kubebuilder:rbac:groups="",resources=pods;pods/exec,verbs=get;list;watch;create;update;patch;delete;deletecollection
7979
//+kubebuilder:rbac:groups="",resources=events,verbs=create;patch
80+
//+kubebuilder:rbac:groups=policy,resources=poddisruptionbudgets,verbs=create;get;list;patch;update
8081
//+kubebuilder:rbac:groups=apps,resources=statefulsets;deployments,verbs=get;list;watch;create;update;patch;delete
8182
//+kubebuilder:rbac:groups=certmanager.k8s.io;cert-manager.io,resources=issuers;certificates,verbs=get;list;watch;create;update;patch;delete;deletecollection
8283
//+kubebuilder:rbac:groups="",resources=serviceaccounts,verbs=get;list;watch;create;patch

0 commit comments

Comments
 (0)