Skip to content

Commit

Permalink
add patch rbac for events
Browse files Browse the repository at this point in the history
  • Loading branch information
kannon92 authored and Kevin Hannon committed Aug 16, 2023
1 parent ebfced0 commit de81d88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/components/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ rules:
- events
verbs:
- create
- patch
- update
- watch
- apiGroups:
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllers/jobset_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func NewJobSetReconciler(client client.Client, scheme *runtime.Scheme, record re
return &JobSetReconciler{Client: client, Scheme: scheme, Record: record}
}

//+kubebuilder:rbac:groups="",resources=events,verbs=create;watch;update
//+kubebuilder:rbac:groups="",resources=events,verbs=create;watch;update;patch
//+kubebuilder:rbac:groups=jobset.x-k8s.io,resources=jobsets,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=jobset.x-k8s.io,resources=jobsets/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=jobset.x-k8s.io,resources=jobsets/finalizers,verbs=update
Expand Down

0 comments on commit de81d88

Please sign in to comment.