Skip to content

Commit

Permalink
Merge pull request #18309 from openshift-cherrypick-robot/cherry-pick…
Browse files Browse the repository at this point in the history
…-18105-to-release-3.7

Automatic merge from submit-queue.

[release-3.7] Include proto swagger in discovery

This is an automated cherry-pick of #18105

/assign juanvallejo
  • Loading branch information
openshift-merge-robot authored Jan 29, 2018
2 parents b59a547 + f378584 commit 284b8b7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/authorization/apis/authorization/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ var DiscoveryRule = rbac.PolicyRule{
"/api", "/api/*",
"/apis", "/apis/*",
"/oapi", "/oapi/*",
"/swaggerapi", "/swaggerapi/*", "/swagger.json",
"/swaggerapi", "/swaggerapi/*", "/swagger.json", "/swagger-2.0.0.pb-v1",
"/osapi", "/osapi/", // these cannot be removed until we can drop support for pre 3.1 clients
"/.well-known", "/.well-known/*",

Expand Down
2 changes: 2 additions & 0 deletions test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1731,6 +1731,7 @@ items:
- /swaggerapi
- /swaggerapi/*
- /swagger.json
- /swagger-2.0.0.pb-v1
- /osapi
- /osapi/
- /.well-known
Expand Down Expand Up @@ -2436,6 +2437,7 @@ items:
- /swaggerapi
- /swaggerapi/*
- /swagger.json
- /swagger-2.0.0.pb-v1
- /osapi
- /osapi/
- /.well-known
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/bootstrappolicy/bootstrap_policy_file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1889,6 +1889,7 @@ items:
- /oapi/*
- /osapi
- /osapi/
- /swagger-2.0.0.pb-v1
- /swagger.json
- /swaggerapi
- /swaggerapi/*
Expand Down Expand Up @@ -2666,6 +2667,7 @@ items:
- /oapi/*
- /osapi
- /osapi/
- /swagger-2.0.0.pb-v1
- /swagger.json
- /swaggerapi
- /swaggerapi/*
Expand Down

0 comments on commit 284b8b7

Please sign in to comment.