Skip to content

Commit df2bf7a

Browse files
authored
chore: add script to generate rbac summary (#9570)
1 parent a92d6c5 commit df2bf7a

4 files changed

Lines changed: 369 additions & 38 deletions

File tree

config/rbac/role.yaml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -340,24 +340,6 @@ rules:
340340
- patch
341341
- update
342342
- watch
343-
- apiGroups:
344-
- ""
345-
resources:
346-
- configmap
347-
verbs:
348-
- create
349-
- delete
350-
- get
351-
- list
352-
- patch
353-
- update
354-
- watch
355-
- apiGroups:
356-
- ""
357-
resources:
358-
- configmap/finalizers
359-
verbs:
360-
- update
361343
- apiGroups:
362344
- ""
363345
resources:

controllers/parameters/reconfigure_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ var reconfigureRequiredLabels = []string{
7474
constant.CMConfigurationSpecProviderLabelKey,
7575
}
7676

77-
// +kubebuilder:rbac:groups=core,resources=configmap,verbs=get;list;watch;create;update;patch;delete
78-
// +kubebuilder:rbac:groups=core,resources=configmap/finalizers,verbs=update
77+
// +kubebuilder:rbac:groups=core,resources=configmaps,verbs=get;list;watch;create;update;patch;delete
78+
// +kubebuilder:rbac:groups=core,resources=configmaps/finalizers,verbs=update
7979

8080
// Reconcile is part of the main kubernetes reconciliation loop which aims to
8181
// move the current state of the cluster closer to the desired state.

deploy/helm/config/rbac/role.yaml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -340,24 +340,6 @@ rules:
340340
- patch
341341
- update
342342
- watch
343-
- apiGroups:
344-
- ""
345-
resources:
346-
- configmap
347-
verbs:
348-
- create
349-
- delete
350-
- get
351-
- list
352-
- patch
353-
- update
354-
- watch
355-
- apiGroups:
356-
- ""
357-
resources:
358-
- configmap/finalizers
359-
verbs:
360-
- update
361343
- apiGroups:
362344
- ""
363345
resources:

0 commit comments

Comments
 (0)