ownership

package
v0.0.0-...-57084c6 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMissingUIDs

func AddMissingUIDs(ctx context.Context, cli client.Client, object metav1.Object)

Given an object, find ownership records that are defined on it with missing UID values and fill-in those values. Access to an API client is and context needed to search for the owning objects.

func SetWithoutUid

func SetWithoutUid(
	resource metav1.Object, ownerAPI schema.GroupVersionKind, ownerName string,
	ownerIsControlller, ownerDeletionBlocked bool,
)

Set an ownership record for a resource without UID. This is meant to be used locally when the UID for the owning resource is not yet known. This function also ensure each object only has one ownership record for a particular API group and Kind combination.

Types

This section is empty.

Jump to

Keyboard shortcuts

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