Skip to content

Commit 478ec02

Browse files
authored
Change the granting logic for sconfigcontroller (#1164)
1 parent 7d4f7d1 commit 478ec02

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

config/rbac/clustercontroller/role.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,17 @@ rules:
8484
verbs:
8585
- get
8686
- update
87+
- apiGroups:
88+
- coordination.k8s.io
89+
resources:
90+
- leases
91+
verbs:
92+
- create
93+
- get
94+
- list
95+
- patch
96+
- update
97+
- watch
8798
- apiGroups:
8899
- k8s.mariadb.com
89100
resources:

helm/soperator/templates/manager-rbac.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,17 @@ rules:
8585
verbs:
8686
- get
8787
- update
88+
- apiGroups:
89+
- coordination.k8s.io
90+
resources:
91+
- leases
92+
verbs:
93+
- create
94+
- get
95+
- list
96+
- patch
97+
- update
98+
- watch
8899
- apiGroups:
89100
- k8s.mariadb.com
90101
resources:

internal/controller/clustercontroller/reconcile.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ import (
6969
//+kubebuilder:rbac:groups=k8s.mariadb.com,resources=grants,verbs=get;list;watch;update;patch;delete;create
7070
//+kubebuilder:rbac:groups=apps,resources=daemonsets,verbs=get;list;watch;update;patch;delete;create
7171
//+kubebuilder:rbac:groups=security-profiles-operator.x-k8s.io,resources=apparmorprofiles,verbs=get;list;watch;update;patch;delete;create
72+
//+kubebuilder:rbac:groups=coordination.k8s.io,resources=leases,verbs=get;list;watch;create;update;patch;
7273

7374
// SlurmClusterReconciler reconciles a SlurmCluster object
7475
type SlurmClusterReconciler struct {

0 commit comments

Comments
 (0)