De-duplication of verb

This commit is contained in:
xilabao 2017-05-26 13:16:38 +08:00
parent 286bcc6f5c
commit 35acfdea89
2 changed files with 1 additions and 2 deletions

View File

@ -226,7 +226,7 @@ func ClusterRoles() []rbac.ClusterRole {
// TODO: remove once mirror pods are removed
// TODO: restrict deletion to mirror pods created by the bound node once supported
// Needed for the node to create/delete mirror pods
rbac.NewRule("get", "create", "delete").Groups(legacyGroup).Resources("pods").RuleOrDie(),
rbac.NewRule("create", "delete").Groups(legacyGroup).Resources("pods").RuleOrDie(),
// TODO: restrict to pods scheduled on the bound node once supported
rbac.NewRule("update").Groups(legacyGroup).Resources("pods/status").RuleOrDie(),

View File

@ -672,7 +672,6 @@ items:
verbs:
- create
- delete
- get
- apiGroups:
- ""
resources: