MCPcopy
hub / github.com/redspread/spread / isNamespaceScoped

Function isNamespaceScoped

pkg/deploy/cluster.go:399–401  ·  view source on GitHub ↗

isNamespaceScoped returns if the mapping is scoped by Namespace.

(mapping *meta.RESTMapping)

Source from the content-addressed store, hash-verified

397
398// isNamespaceScoped returns if the mapping is scoped by Namespace.
399func 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.
404func defaultLoadingRules() *clientcmd.ClientConfigLoadingRules {

Callers 1

setRequestObjectInfoFunction · 0.85

Calls 1

NameMethod · 0.80

Tested by

no test coverage detected