mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 18:24:07 +00:00
De-duplication of verb
This commit is contained in:
parent
286bcc6f5c
commit
35acfdea89
@ -226,7 +226,7 @@ func ClusterRoles() []rbac.ClusterRole {
|
|||||||
// TODO: remove once mirror pods are removed
|
// TODO: remove once mirror pods are removed
|
||||||
// TODO: restrict deletion to mirror pods created by the bound node once supported
|
// TODO: restrict deletion to mirror pods created by the bound node once supported
|
||||||
// Needed for the node to create/delete mirror pods
|
// 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
|
// TODO: restrict to pods scheduled on the bound node once supported
|
||||||
rbac.NewRule("update").Groups(legacyGroup).Resources("pods/status").RuleOrDie(),
|
rbac.NewRule("update").Groups(legacyGroup).Resources("pods/status").RuleOrDie(),
|
||||||
|
|
||||||
|
@ -672,7 +672,6 @@ items:
|
|||||||
verbs:
|
verbs:
|
||||||
- create
|
- create
|
||||||
- delete
|
- delete
|
||||||
- get
|
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
resources:
|
resources:
|
||||||
|
Loading…
Reference in New Issue
Block a user