Skip to content

Commit

Permalink
Shrink permissions of vc scheduler & controller
Browse files Browse the repository at this point in the history
Signed-off-by: gaofei <[email protected]>
Signed-off-by: Monokaix <[email protected]>
  • Loading branch information
gaofei authored and Monokaix committed Jun 26, 2024
1 parent 2e673bc commit ab8091c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion installer/helm/chart/volcano/templates/controllers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ rules:
verbs: ["create", "list", "watch", "update", "patch"]
- apiGroups: [""]
resources: ["pods"]
verbs: ["create", "get", "list", "watch", "update", "bind", "delete", "patch"]
verbs: ["create", "get", "list", "watch", "delete", "patch"]
- apiGroups: [""]
resources: ["pods/finalizers"]
verbs: ["update", "patch"]
Expand Down
7 changes: 5 additions & 2 deletions installer/helm/chart/volcano/templates/scheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@ rules:
resources: ["events"]
verbs: ["create", "list", "watch", "update", "patch"]
- apiGroups: [""]
resources: ["pods", "pods/status"]
verbs: ["create", "get", "list", "watch", "update", "patch", "bind", "updateStatus", "delete"]
resources: ["pods"]
verbs: ["get", "list", "watch", "patch", "delete"]
- apiGroups: [""]
resources: ["pods/status"]
verbs: ["update"]
- apiGroups: [""]
resources: ["pods/binding"]
verbs: ["create"]
Expand Down
9 changes: 6 additions & 3 deletions installer/volcano-development.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4050,7 +4050,7 @@ rules:
verbs: ["create", "list", "watch", "update", "patch"]
- apiGroups: [""]
resources: ["pods"]
verbs: ["create", "get", "list", "watch", "update", "bind", "delete", "patch"]
verbs: ["create", "get", "list", "watch", "delete", "patch"]
- apiGroups: [""]
resources: ["pods/finalizers"]
verbs: ["update", "patch"]
Expand Down Expand Up @@ -4189,8 +4189,11 @@ rules:
resources: ["events"]
verbs: ["create", "list", "watch", "update", "patch"]
- apiGroups: [""]
resources: ["pods", "pods/status"]
verbs: ["create", "get", "list", "watch", "update", "patch", "bind", "updateStatus", "delete"]
resources: ["pods"]
verbs: ["get", "list", "watch", "patch", "delete"]
- apiGroups: [""]
resources: ["pods/status"]
verbs: ["update"]
- apiGroups: [""]
resources: ["pods/binding"]
verbs: ["create"]
Expand Down

0 comments on commit ab8091c

Please sign in to comment.