Skip to content

Commit

Permalink
fix(rbac): change job api group to batch (#224)
Browse files Browse the repository at this point in the history
Signed-off-by: Vaughn Dice <[email protected]>
  • Loading branch information
vdice authored Sep 30, 2024
1 parent 125f80a commit f1d9cd1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
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

0 comments on commit f1d9cd1

Please sign in to comment.