diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index 1bfc471..4cc3562 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -90,18 +90,6 @@ rules: - patch - update - watch -- apiGroups: - - cluster.ray.io - resources: - - rayclusters - verbs: - - create - - delete - - get - - list - - patch - - update - - watch - apiGroups: - kubeflow.org resources: @@ -156,6 +144,18 @@ rules: - get - patch - update +- apiGroups: + - ray.io + resources: + - rayclusters + verbs: + - create + - delete + - get + - list + - patch + - update + - watch - apiGroups: - scheduling.k8s.io resources: diff --git a/internal/controller/appwrapper/appwrapper_controller.go b/internal/controller/appwrapper/appwrapper_controller.go index 1ab9dd0..6eaec33 100644 --- a/internal/controller/appwrapper/appwrapper_controller.go +++ b/internal/controller/appwrapper/appwrapper_controller.go @@ -84,7 +84,7 @@ type componentStatusSummary struct { //+kubebuilder:rbac:groups=scheduling.sigs.k8s.io,resources=podgroups,verbs=get;list;watch;create;update;patch;delete //+kubebuilder:rbac:groups=scheduling.x-k8s.io,resources=podgroups,verbs=get;list;watch;create;update;patch;delete //+kubebuilder:rbac:groups=kubeflow.org,resources=pytorchjobs,verbs=get;list;watch;create;update;patch;delete -//+kubebuilder:rbac:groups=cluster.ray.io,resources=rayclusters,verbs=get;list;watch;create;update;patch;delete +//+kubebuilder:rbac:groups=ray.io,resources=rayclusters,verbs=get;list;watch;create;update;patch;delete // Reconcile reconciles an appwrapper // Please see [aw-states] for documentation of this method.