notebooks: Allow notebook controller to patch events (kubeflow/kubeflow#6523)

This commit is contained in:
Jeongwook Park 2022-06-20 21:25:37 +09:00 committed by GitHub
parent 955e379ada
commit bba1bf22ee
2 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ rules:
- create
- get
- list
- patch
- watch
- apiGroups:
- ""

View File

@ -79,7 +79,7 @@ type NotebookReconciler struct {
}
// +kubebuilder:rbac:groups=core,resources=pods,verbs=get;list;watch
// +kubebuilder:rbac:groups=core,resources=events,verbs=get;list;watch;create
// +kubebuilder:rbac:groups=core,resources=events,verbs=get;list;watch;create;patch
// +kubebuilder:rbac:groups=core,resources=services,verbs="*"
// +kubebuilder:rbac:groups=apps,resources=statefulsets,verbs="*"
// +kubebuilder:rbac:groups=kubeflow.org,resources=notebooks;notebooks/status;notebooks/finalizers,verbs="*"