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 97b1e2f
Show file tree
Hide file tree
Showing 3 changed files with 5 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
3 changes: 3 additions & 0 deletions controllers/falcon/falconnodesensor_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ func (r *FalconNodeSensorReconciler) SetupWithManager(mgr ctrl.Manager) error {
Complete(r)
}

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

//+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

0 comments on commit 97b1e2f

Please sign in to comment.