Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: manager-role
rules:
- apiGroups:
- runtime.kwasm.sh
- batch
resources:
- jobs
verbs:
Expand All @@ -17,13 +17,13 @@ rules:
- update
- watch
- apiGroups:
- runtime.kwasm.sh
- batch
resources:
- jobs/finalizers
verbs:
- update
- apiGroups:
- runtime.kwasm.sh
- batch
resources:
- jobs/status
verbs:
Expand Down
6 changes: 3 additions & 3 deletions internal/controller/job_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ type JobReconciler struct {
Scheme *runtime.Scheme
}

//+kubebuilder:rbac:groups=runtime.kwasm.sh,resources=jobs,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=runtime.kwasm.sh,resources=jobs/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=runtime.kwasm.sh,resources=jobs/finalizers,verbs=update
//+kubebuilder:rbac:groups=batch,resources=jobs,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=batch,resources=jobs/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=batch,resources=jobs/finalizers,verbs=update

// SetupWithManager sets up the controller with the Manager.
func (jr *JobReconciler) SetupWithManager(mgr ctrl.Manager) error {
Expand Down
Loading