mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-17 15:13:08 +00:00
remove deprecated openapi paths in favor of /openapi/v2
This commit is contained in:
@@ -199,9 +199,6 @@ func ClusterRoles() []rbacv1.ClusterRole {
|
||||
Rules: []rbacv1.PolicyRule{
|
||||
rbacv1helpers.NewRule("get").URLs(
|
||||
"/healthz", "/version", "/version/",
|
||||
// do not expand this pattern for openapi discovery docs
|
||||
// move to a single openapi endpoint that takes accept/accept-encoding headers
|
||||
"/swagger.json", "/swagger-2.0.0.pb-v1",
|
||||
"/openapi", "/openapi/*",
|
||||
"/api", "/api/*",
|
||||
"/apis", "/apis/*",
|
||||
|
@@ -550,8 +550,6 @@ items:
|
||||
- /healthz
|
||||
- /openapi
|
||||
- /openapi/*
|
||||
- /swagger-2.0.0.pb-v1
|
||||
- /swagger.json
|
||||
- /version
|
||||
- /version/
|
||||
verbs:
|
||||
|
Reference in New Issue
Block a user