Unverified Commit 519d0cde authored by Brendan Burns's avatar Brendan Burns Committed by GitHub

Update policy.go

parent ec532389
...@@ -169,7 +169,7 @@ func ClusterRoles() []rbac.ClusterRole { ...@@ -169,7 +169,7 @@ func ClusterRoles() []rbac.ClusterRole {
ObjectMeta: metav1.ObjectMeta{Name: "system:discovery"}, ObjectMeta: metav1.ObjectMeta{Name: "system:discovery"},
Rules: []rbac.PolicyRule{ Rules: []rbac.PolicyRule{
rbac.NewRule("get").URLs( rbac.NewRule("get").URLs(
"/healthz", "/version", "/version/*", "/healthz", "/version", "/version/",
// remove once swagger 1.2 support is removed // remove once swagger 1.2 support is removed
"/swaggerapi", "/swaggerapi/*", "/swaggerapi", "/swaggerapi/*",
// do not expand this pattern for openapi discovery docs // do not expand this pattern for openapi discovery docs
......
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