Skip to content

Commit

Permalink
Add pod deletecollection permissions to operator
Browse files Browse the repository at this point in the history
  • Loading branch information
jsullivan-CS committed Sep 12, 2022
1 parent 5b8ea45 commit 3a867b9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ spec:
- pods
verbs:
- delete
- deletecollection
- get
- list
- watch
Expand Down
1 change: 1 addition & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ rules:
- pods
verbs:
- delete
- deletecollection
- get
- list
- watch
Expand Down
2 changes: 2 additions & 0 deletions controllers/falcon/falconnodesensor_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ func (r *FalconNodeSensorReconciler) SetupWithManager(mgr ctrl.Manager) error {
Complete(r)
}

// +kubebuilder:rbac:groups="",resources=pods,verbs=get;list;watch;delete;deletecollection

//+kubebuilder:rbac:groups=falcon.crowdstrike.com,resources=falconnodesensors,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=falcon.crowdstrike.com,resources=falconnodesensors/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=falcon.crowdstrike.com,resources=falconnodesensors/finalizers,verbs=update
Expand Down
1 change: 1 addition & 0 deletions deploy/falcon-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,7 @@ rules:
- pods
verbs:
- delete
- deletecollection
- get
- list
- watch
Expand Down
1 change: 1 addition & 0 deletions deploy/parts/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ rules:
- pods
verbs:
- delete
- deletecollection
- get
- list
- watch
Expand Down

0 comments on commit 3a867b9

Please sign in to comment.