Documentation ¶
Index ¶
- func FilterWithLabels(objs []runtime.Object, labelSel labels.Selector) ([]runtime.Object, error)
- func IsAPINamespaced(obj runtime.Object, scheme *runtime.Scheme, restmapper apimeta.RESTMapper) (bool, error)
- func IsAPINamespacedWithGVK(gk schema.GroupVersionKind, scheme *runtime.Scheme, ...) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterWithLabels ¶
FilterWithLabels returns a copy of the items in objs matching labelSel.
func IsAPINamespaced ¶ added in v0.9.0
func IsAPINamespaced(obj runtime.Object, scheme *runtime.Scheme, restmapper apimeta.RESTMapper) (bool, error)
IsAPINamespaced returns true if the object is namespace scoped. For unstructured objects the gvk is found from the object itself.
func IsAPINamespacedWithGVK ¶ added in v0.9.0
func IsAPINamespacedWithGVK(gk schema.GroupVersionKind, scheme *runtime.Scheme, restmapper apimeta.RESTMapper) (bool, error)
IsAPINamespacedWithGVK returns true if the object having the provided GVK is namespace scoped.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.