Add '/version/*' to the system:discovery role, since that's what the open

api spec says.
This commit is contained in:
Brendan Burns 2017-12-18 20:31:17 -08:00
parent cdbfff0773
commit ec53238901
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -640,6 +640,7 @@ items:
- /swaggerapi
- /swaggerapi/*
- /version
- /version/*
verbs:
- get
- apiVersion: rbac.authorization.k8s.io/v1