remove warning infomation when use '*'

This commit is contained in:
xilabao 2017-04-17 15:28:29 +08:00
parent dee81ed56a
commit d3d33aa834

View File

@ -180,6 +180,10 @@ func (o *CanIOptions) RunAccessCheck() (bool, error) {
}
func (o *CanIOptions) resourceFor(mapper meta.RESTMapper, resourceArg string) schema.GroupVersionResource {
if resourceArg == "*" {
return schema.GroupVersionResource{Resource: resourceArg}
}
fullySpecifiedGVR, groupResource := schema.ParseResourceArg(strings.ToLower(resourceArg))
gvr := schema.GroupVersionResource{}
if fullySpecifiedGVR != nil {