Skip to content

Commit

Permalink
Merge pull request #576 from hzxuzhonghu/np-rbac
Browse files Browse the repository at this point in the history
Enable networkpolicy create/get permission
  • Loading branch information
volcano-sh-bot authored Dec 3, 2019
2 parents 9077081 + 3e6cdfd commit 759b8a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions installer/helm/chart/volcano/templates/controllers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ rules:
- apiGroups: ["scheduling.k8s.io"]
resources: ["priorityclasses"]
verbs: ["get", "list", "watch", "create", "delete"]
- apiGroups: ["networking.k8s.io"]
resources: ["networkpolicies"]
verbs: ["get", "create"]

---
kind: ClusterRoleBinding
Expand Down
3 changes: 3 additions & 0 deletions installer/volcano-development.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,9 @@ rules:
- apiGroups: ["scheduling.k8s.io"]
resources: ["priorityclasses"]
verbs: ["get", "list", "watch", "create", "delete"]
- apiGroups: ["networking.k8s.io"]
resources: ["networkpolicies"]
verbs: ["get", "create"]

---
kind: ClusterRoleBinding
Expand Down

0 comments on commit 759b8a4

Please sign in to comment.