remove deprecated openapi paths in favor of /openapi/v2

This commit is contained in:
Jordan Liggitt
2019-01-21 16:33:41 -05:00
parent 5e86fa43f5
commit 52519ecb1c
8 changed files with 10 additions and 42 deletions

View File

@@ -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/*",

View File

@@ -550,8 +550,6 @@ items:
- /healthz
- /openapi
- /openapi/*
- /swagger-2.0.0.pb-v1
- /swagger.json
- /version
- /version/
verbs: