Commit 61693bf6 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #46489 from xilabao/de-duplication-of-verb

Automatic merge from submit-queue (batch tested with PRs 46489, 46281, 46463, 46114, 43946) De-duplication of verb in policy.go **What this PR does / why we need it**: https://github.com/kubernetes/kubernetes/blob/master/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go#L224 contains `get` verb. **Which issue this PR fixes**: **Special notes for your reviewer**: **Release note**: ```release-note None ```
parents 657c01c6 35acfdea
...@@ -226,7 +226,7 @@ func ClusterRoles() []rbac.ClusterRole { ...@@ -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: ...@@ -672,7 +672,6 @@ items:
verbs: verbs:
- create - create
- delete - delete
- get
- apiGroups: - apiGroups:
- "" - ""
resources: resources:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment