From 1ef408be4ab879423e5d87372998be890add947f Mon Sep 17 00:00:00 2001 From: mevrin Date: Mon, 6 May 2024 20:12:53 -0400 Subject: [PATCH 1/2] Remove list and watch secret in controller ClusterRole since it is not used Signed-off-by: mevrin --- installer/helm/chart/volcano/templates/controllers.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/helm/chart/volcano/templates/controllers.yaml b/installer/helm/chart/volcano/templates/controllers.yaml index ee36392481..1d020281ac 100644 --- a/installer/helm/chart/volcano/templates/controllers.yaml +++ b/installer/helm/chart/volcano/templates/controllers.yaml @@ -47,7 +47,7 @@ rules: verbs: ["get", "list", "watch", "create", "delete", "update"] - apiGroups: [""] resources: ["secrets"] - verbs: ["get", "list", "watch", "create", "delete", "update"] + verbs: ["get", "create", "delete", "update"] - apiGroups: ["scheduling.incubator.k8s.io", "scheduling.volcano.sh"] resources: ["podgroups", "queues", "queues/status"] verbs: ["get", "list", "watch", "create", "delete", "update"] From 437f3a67effa758f75e2bb55491ddb5a5952c03d Mon Sep 17 00:00:00 2001 From: mevrin Date: Tue, 7 May 2024 22:56:12 -0400 Subject: [PATCH 2/2] Fix generate files issue Signed-off-by: mevrin --- installer/volcano-development.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/volcano-development.yaml b/installer/volcano-development.yaml index 2c77b1182a..f03e2c2655 100644 --- a/installer/volcano-development.yaml +++ b/installer/volcano-development.yaml @@ -3968,7 +3968,7 @@ rules: verbs: ["get", "list", "watch", "create", "delete", "update"] - apiGroups: [""] resources: ["secrets"] - verbs: ["get", "list", "watch", "create", "delete", "update"] + verbs: ["get", "create", "delete", "update"] - apiGroups: ["scheduling.incubator.k8s.io", "scheduling.volcano.sh"] resources: ["podgroups", "queues", "queues/status"] verbs: ["get", "list", "watch", "create", "delete", "update"]