Skip to content

Commit

Permalink
Fix RBAC
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Velichkevich <[email protected]>
  • Loading branch information
andreyvelich committed Jan 21, 2025
1 parent 2db5829 commit ef67ca8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
8 changes: 0 additions & 8 deletions manifests/v2/base/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@ rules:
- ""
resources:
- configmaps
verbs:
- create
- get
- list
- watch
- apiGroups:
- ""
resources:
- secrets
verbs:
- create
Expand Down
4 changes: 2 additions & 2 deletions manifests/v2/base/runtimes/pre-training/mpi-distributed.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# TODO (andreyvelich): Change this to DeepSpeed or MLX runtimes
# TODO (andreyvelich): Change this to DeepSpeed or MLX runtime.
apiVersion: kubeflow.org/v2alpha1
kind: ClusterTrainingRuntime
metadata:
Expand All @@ -23,7 +23,7 @@ spec:
spec:
template:
spec:
# TODO (andreyvelich): Change the command.
# TODO (andreyvelich): Change the command with mpirun.
containers:
- name: launcher
image: busybox
Expand Down
4 changes: 2 additions & 2 deletions pkg/runtime.v2/framework/plugins/mpi/mpi.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ var _ framework.ComponentBuilderPlugin = (*MPI)(nil)

const Name = "MPI"

// +kubebuilder:rbac:groups="",resources=secrets,verbs=create;get;list;watch
// +kubebuilder:rbac:groups="",resources=configmaps,verbs=create;get;list;watch
// +kubebuilder:rbac:groups="",resources=secrets,verbs=create;get;list;update;watch
// +kubebuilder:rbac:groups="",resources=configmaps,verbs=create;get;list;update;watch

func New(_ context.Context, client client.Client, _ client.FieldIndexer) (framework.Plugin, error) {
return &MPI{
Expand Down

0 comments on commit ef67ca8

Please sign in to comment.