objects

package
v1.25.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package objects provides functions to manage pure objects in Kubernetes

Index

Constants

View Source
const (
	// RetryAttempts maximum number of attempts when it fails in `retry`. Mainly used in `RunUncheckedRetry`
	RetryAttempts = 5

	// PollingTime polling interval (in seconds) between retries
	PollingTime = 5
)

Variables

This section is empty.

Functions

func Create

func Create(
	ctx context.Context,
	crudClient client.Client,
	object client.Object,
	opts ...client.CreateOption,
) (client.Object, error)

Create creates object in the Kubernetes cluster

func Delete

func Delete(
	ctx context.Context,
	crudClient client.Client,
	object client.Object,
	opts ...client.DeleteOption,
) error

Delete deletes an object in the Kubernetes cluster

func Get

func Get(
	ctx context.Context,
	crudClient client.Client,
	objectKey client.ObjectKey,
	object client.Object,
) error

Get retrieves an object for the given object key from the Kubernetes Cluster

func List

func List(
	ctx context.Context,
	crudClient client.Client,
	objectList client.ObjectList,
	opts ...client.ListOption,
) error

List retrieves a list of objects

Types

This section is empty.

Jump to

Keyboard shortcuts

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