mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Update policy.go
This commit is contained in:
parent
ec53238901
commit
519d0cde7b
@ -169,7 +169,7 @@ func ClusterRoles() []rbac.ClusterRole {
|
||||
ObjectMeta: metav1.ObjectMeta{Name: "system:discovery"},
|
||||
Rules: []rbac.PolicyRule{
|
||||
rbac.NewRule("get").URLs(
|
||||
"/healthz", "/version", "/version/*",
|
||||
"/healthz", "/version", "/version/",
|
||||
// remove once swagger 1.2 support is removed
|
||||
"/swaggerapi", "/swaggerapi/*",
|
||||
// do not expand this pattern for openapi discovery docs
|
||||
|
Loading…
Reference in New Issue
Block a user