Skip to content

Commit

Permalink
Merge pull request #268 from danielvegamyhre/rbac
Browse files Browse the repository at this point in the history
Add update/patch rbac verbs for resource jobs/status
  • Loading branch information
k8s-ci-robot authored Aug 24, 2023
2 parents 5fd390f + eb20ed0 commit 040cbd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions config/components/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ rules:
- jobs/status
verbs:
- get
- patch
- update
- apiGroups:
- ""
resources:
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 @@ -76,7 +76,7 @@ func NewJobSetReconciler(client client.Client, scheme *runtime.Scheme, record re
//+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
//+kubebuilder:rbac:groups=batch,resources=jobs,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=batch,resources=jobs/status,verbs=get
//+kubebuilder:rbac:groups=batch,resources=jobs/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=core,resources=services,verbs=get;list;watch;create;update;patch;delete

// Reconcile is part of the main kubernetes reconciliation loop which aims to
Expand Down

0 comments on commit 040cbd4

Please sign in to comment.