mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 00:34:10 -04:00
Merge pull request #101230 from lojies/fixrbacvalidation
code cleanup:fix broken link in validation
This commit is contained in:
commit
f576fa9164
1 changed files with 2 additions and 2 deletions
|
|
@ -27,8 +27,8 @@ import (
|
|||
|
||||
// ValidateRBACName is exported to allow types outside of the RBAC API group to reuse this validation logic
|
||||
// Minimal validation of names for roles and bindings. Identical to the validation for Openshift. See:
|
||||
// * https://github.com/kubernetes/kubernetes/blob/60db50/pkg/api/validation/name.go
|
||||
// * https://github.com/openshift/origin/blob/388478/pkg/api/helpers.go
|
||||
// * https://github.com/kubernetes/kubernetes/blob/60db507b279ce45bd16ea3db49bf181f2aeb3c3d/pkg/api/validation/name.go
|
||||
// * https://github.com/openshift/origin/blob/388478c40e751c4295dcb9a44dd69e5ac65d0e3b/pkg/api/helpers.go
|
||||
func ValidateRBACName(name string, prefix bool) []string {
|
||||
return path.IsValidPathSegmentName(name)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue