owner

package
v0.0.0-...-0eb2fac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL