Skip to content

Commit

Permalink
Merge pull request #271 from danielvegamyhre/automated-cherry-pick-of…
Browse files Browse the repository at this point in the history
…-#268-upstream-release-0.2

Automated cherry pick of #268: add update/patch rbac verbs for resource jobs/status
  • Loading branch information
k8s-ci-robot authored Aug 26, 2023
2 parents 6380248 + bc10352 commit 6efc082
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 6efc082

Please sign in to comment.