Unverified Commit c13a2aba authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

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. ```
parents 1cfbd3c4 20bb9edf
......@@ -169,7 +169,7 @@ func ClusterRoles() []rbac.ClusterRole {
ObjectMeta: metav1.ObjectMeta{Name: "system:discovery"},
Rules: []rbac.PolicyRule{
rbac.NewRule("get").URLs(
"/healthz", "/version",
"/healthz", "/version", "/version/",
// remove once swagger 1.2 support is removed
"/swaggerapi", "/swaggerapi/*",
// do not expand this pattern for openapi discovery docs
......
......@@ -640,6 +640,7 @@ items:
- /swaggerapi
- /swaggerapi/*
- /version
- /version/
verbs:
- get
- apiVersion: rbac.authorization.k8s.io/v1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment