isNamespaceScoped returns if the mapping is scoped by Namespace.
(mapping *meta.RESTMapping)
| 397 | |
| 398 | // isNamespaceScoped returns if the mapping is scoped by Namespace. |
| 399 | func isNamespaceScoped(mapping *meta.RESTMapping) bool { |
| 400 | return mapping.Scope.Name() == meta.RESTScopeNameNamespace |
| 401 | } |
| 402 | |
| 403 | // defaultLoadingRules use the same rules (as of 2/17/16) as kubectl. |
| 404 | func defaultLoadingRules() *clientcmd.ClientConfigLoadingRules { |
no test coverage detected