Skip to content

Commit 3e2fb6c

Browse files
committed
#2003 Re-add missing roles
Update permission was missing in the go code from which these are generated Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
1 parent 4eb5c1c commit 3e2fb6c

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

operator/config/rbac/role.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,5 @@ rules:
132132
- create
133133
- get
134134
- list
135+
- update
135136
- watch

operator/controllers/execution/scans/scan_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ var s3StorageFinalizer = "s3.storage.securecodebox.io"
5454
// Pod permission are required to grant these permission to service accounts
5555
// +kubebuilder:rbac:groups=core,resources=pods,verbs=get
5656
// +kubebuilder:rbac:groups=core,resources=serviceaccounts,verbs=get;watch;list;create
57-
// +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=roles,verbs=get;watch;list;create
57+
// +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=roles,verbs=get;watch;list;create;update
5858
// +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=rolebindings,verbs=get;watch;list;create
5959

6060
// Reconcile compares the scan object against the state of the cluster and updates both if needed

operator/templates/rbac/role.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,5 @@ rules:
132132
- create
133133
- get
134134
- list
135+
- update
135136
- watch

operator/tests/__snapshot__/operator_test.yaml.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ matches the snapshot:
463463
- create
464464
- get
465465
- list
466+
- update
466467
- watch
467468
15: |
468469
apiVersion: rbac.authorization.k8s.io/v1

0 commit comments

Comments
 (0)