Skip to content

Commit 9c2febd

Browse files
committed
fix(manifests): Add missing permissions for the RuntimeClass and LimitRange
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
1 parent 952f943 commit 9c2febd

3 files changed

Lines changed: 34 additions & 0 deletions

File tree

charts/kubeflow-trainer/templates/rbac/clusterrole.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ rules:
4242
- patch
4343
- update
4444
- watch
45+
- apiGroups:
46+
- ""
47+
resources:
48+
- limitranges
49+
verbs:
50+
- get
51+
- list
52+
- watch
4553
- apiGroups:
4654
- admissionregistration.k8s.io
4755
resources:
@@ -62,6 +70,14 @@ rules:
6270
- patch
6371
- update
6472
- watch
73+
- apiGroups:
74+
- node.k8s.io
75+
resources:
76+
- runtimeclasses
77+
verbs:
78+
- get
79+
- list
80+
- watch
6581
- apiGroups:
6682
- scheduling.x-k8s.io
6783
resources:

manifests/base/rbac/role.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ rules:
2525
- patch
2626
- update
2727
- watch
28+
- apiGroups:
29+
- ""
30+
resources:
31+
- limitranges
32+
verbs:
33+
- get
34+
- list
35+
- watch
2836
- apiGroups:
2937
- admissionregistration.k8s.io
3038
resources:
@@ -45,6 +53,14 @@ rules:
4553
- patch
4654
- update
4755
- watch
56+
- apiGroups:
57+
- node.k8s.io
58+
resources:
59+
- runtimeclasses
60+
verbs:
61+
- get
62+
- list
63+
- watch
4864
- apiGroups:
4965
- scheduling.x-k8s.io
5066
resources:

pkg/runtime/framework/plugins/coscheduling/coscheduling.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ var (
6969
const Name = "CoScheduling"
7070

7171
// +kubebuilder:rbac:groups=scheduling.x-k8s.io,resources=podgroups,verbs=create;get;list;watch;update;patch
72+
// +kubebuilder:rbac:groups=node.k8s.io,resources=runtimeclasses,verbs=get;list;watch
73+
// +kubebuilder:rbac:groups="",resources=limitranges,verbs=get;list;watch
7274

7375
func New(ctx context.Context, client client.Client, indexer client.FieldIndexer) (framework.Plugin, error) {
7476
if err := indexer.IndexField(ctx, &trainer.TrainingRuntime{}, TrainingRuntimeContainerRuntimeClassKey,

0 commit comments

Comments
 (0)