diff --git a/config/components/rbac/role.yaml b/config/components/rbac/role.yaml index 5ad0ac90..53b43158 100644 --- a/config/components/rbac/role.yaml +++ b/config/components/rbac/role.yaml @@ -10,6 +10,7 @@ rules: - events verbs: - create + - patch - update - watch - apiGroups: diff --git a/pkg/controllers/jobset_controller.go b/pkg/controllers/jobset_controller.go index e64dfaa3..5e6fa450 100644 --- a/pkg/controllers/jobset_controller.go +++ b/pkg/controllers/jobset_controller.go @@ -71,7 +71,7 @@ func NewJobSetReconciler(client client.Client, scheme *runtime.Scheme, record re return &JobSetReconciler{Client: client, Scheme: scheme, Record: record} } -//+kubebuilder:rbac:groups="",resources=events,verbs=create;watch;update +//+kubebuilder:rbac:groups="",resources=events,verbs=create;watch;update;patch //+kubebuilder:rbac:groups=jobset.x-k8s.io,resources=jobsets,verbs=get;list;watch;create;update;patch;delete //+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