Skip to content

Commit 284b8b7

Browse files
Merge pull request #18309 from openshift-cherrypick-robot/cherry-pick-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
2 parents b59a547 + f378584 commit 284b8b7

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

pkg/authorization/apis/authorization/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ var DiscoveryRule = rbac.PolicyRule{
5050
"/api", "/api/*",
5151
"/apis", "/apis/*",
5252
"/oapi", "/oapi/*",
53-
"/swaggerapi", "/swaggerapi/*", "/swagger.json",
53+
"/swaggerapi", "/swaggerapi/*", "/swagger.json", "/swagger-2.0.0.pb-v1",
5454
"/osapi", "/osapi/", // these cannot be removed until we can drop support for pre 3.1 clients
5555
"/.well-known", "/.well-known/*",
5656

test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,6 +1731,7 @@ items:
17311731
- /swaggerapi
17321732
- /swaggerapi/*
17331733
- /swagger.json
1734+
- /swagger-2.0.0.pb-v1
17341735
- /osapi
17351736
- /osapi/
17361737
- /.well-known
@@ -2436,6 +2437,7 @@ items:
24362437
- /swaggerapi
24372438
- /swaggerapi/*
24382439
- /swagger.json
2440+
- /swagger-2.0.0.pb-v1
24392441
- /osapi
24402442
- /osapi/
24412443
- /.well-known

test/testdata/bootstrappolicy/bootstrap_policy_file.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1889,6 +1889,7 @@ items:
18891889
- /oapi/*
18901890
- /osapi
18911891
- /osapi/
1892+
- /swagger-2.0.0.pb-v1
18921893
- /swagger.json
18931894
- /swaggerapi
18941895
- /swaggerapi/*
@@ -2666,6 +2667,7 @@ items:
26662667
- /oapi/*
26672668
- /osapi
26682669
- /osapi/
2670+
- /swagger-2.0.0.pb-v1
26692671
- /swagger.json
26702672
- /swaggerapi
26712673
- /swaggerapi/*

0 commit comments

Comments
 (0)