fix the namespaceScoped of cachers

This commit is contained in:
Chao Xu
2016-01-21 16:59:30 -08:00
parent 2aff6ccf06
commit ebcff4b5e4
24 changed files with 44 additions and 26 deletions

View File

@@ -118,3 +118,9 @@ func objectMetaAndKind(typer runtime.ObjectTyper, obj runtime.Object) (*api.Obje
}
return objectMeta, kind, nil
}
// NamespaceScopedStrategy has a method to tell if the object must be in a namespace.
type NamespaceScopedStrategy interface {
// NamespaceScoped returns if the object must be in a namespace.
NamespaceScoped() bool
}