mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 16:29:21 +00:00
Merge pull request #57368 from brendandburns/version
Automatic merge from submit-queue (batch tested with PRs 57349, 57368). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Add '/version/' to the system:discovery role, since that's what the spec says. See: https://github.com/kubernetes-client/java/issues/153 ```release-note Add the path '/version/' to the `system:discovery` cluster role. ```
This commit is contained in:
commit
c13a2abaf3
@ -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",
|
"/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
|
||||||
|
@ -640,6 +640,7 @@ items:
|
|||||||
- /swaggerapi
|
- /swaggerapi
|
||||||
- /swaggerapi/*
|
- /swaggerapi/*
|
||||||
- /version
|
- /version
|
||||||
|
- /version/
|
||||||
verbs:
|
verbs:
|
||||||
- get
|
- get
|
||||||
- apiVersion: rbac.authorization.k8s.io/v1
|
- apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
Loading…
Reference in New Issue
Block a user