Documentation ¶
Overview ¶
Package owner contains code for walking up the ownership chain, starting with an arbitrary object. RBAC rules must allow GET access to each object on the chain, at least including the starting object, more when walking up more than one level.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Lookup ¶
func Lookup(config *rest.Config, namespace, name string, gkv schema.GroupVersionKind, levels int) (*metav1.OwnerReference, error)
Lookup walks up the ownership chain zero or more levels and returns an OwnerReference for the object. The object identified by name, namespace and type is the starting point and is returned when levels is zero. Only APIVersion, Kind, Name, and UID will be set. IsController is always true.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.