dynamic

package
v0.30.37 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 28 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyLabels added in v0.25.42

func ClusterUID

func ClusterUID(client dynamic.Interface) (string, error)

func DetectWorkload

func DetectWorkload(ctx context.Context, config *rest.Config, resource schema.GroupVersionResource, namespace, name string) (*unstructured.Unstructured, schema.GroupVersionResource, error)

func EnsureOwnerReferenceForItems

func EnsureOwnerReferenceForItems(
	ctx context.Context,
	c dynamic.Interface,
	gvr schema.GroupVersionResource,
	namespace string,
	items []string,
	owner *metav1.OwnerReference,
) error

func EnsureOwnerReferenceForSelector

func EnsureOwnerReferenceForSelector(
	ctx context.Context,
	c dynamic.Interface,
	gvr schema.GroupVersionResource,
	namespace string,
	selector labels.Selector,
	owner *metav1.OwnerReference,
) error

func RemoveOwnerReferenceForItems

func RemoveOwnerReferenceForItems(
	ctx context.Context,
	c dynamic.Interface,
	gvr schema.GroupVersionResource,
	namespace string,
	items []string,
	owner metav1.Object,
) error

func RemoveOwnerReferenceForSelector

func RemoveOwnerReferenceForSelector(
	ctx context.Context,
	c dynamic.Interface,
	gvr schema.GroupVersionResource,
	namespace string,
	selector labels.Selector,
	owner metav1.Object,
) error

func ResourceExists

func ResourceExists(
	ctx context.Context,
	c dynamic.Interface,
	gvr schema.GroupVersionResource,
	namespace string,
	name string,
) (bool, error)

func ResourcesExists

func ResourcesExists(
	c dynamic.Interface,
	gvr schema.GroupVersionResource,
	namespace string,
	names ...string,
) (bool, error)

func ResourcesNotExists

func ResourcesNotExists(
	c dynamic.Interface,
	gvr schema.GroupVersionResource,
	namespace string,
	names ...string,
) (bool, error)

func UntilHasAnnotation

func UntilHasAnnotation(config *rest.Config, gvk schema.GroupVersionKind, namespace, name string, key string, value *string, timeout time.Duration) (out string, err error)

func UntilHasLabel

func UntilHasLabel(config *rest.Config, gvk schema.GroupVersionKind, namespace, name string, key string, value *string, timeout time.Duration) (out string, err error)

func WaitUntilDeleted

func WaitUntilDeleted(ri dynamic.ResourceInterface, stopCh <-chan struct{}, name string, subresources ...string) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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