k8s

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteIfFound

func DeleteIfFound(ctx context.Context, client client.Client, resource client.Object) error

DeleteIfFound deletes the given resource from the cluster and returns an error only if the deletion fails. If the resource does not exist, no error will be returned.

func EnqueueMapFunc

func EnqueueMapFunc[L client.ObjectList](
	ctrlClient client.Client,
	logger *zap.Logger,
	target client.Object,
	list L,
	getItems func(L) []client.Object,
) func(context.Context, client.Object) []reconcile.Request

EnqueueMapFunc may be used to watch changes of a particular target objects and trigger the reconciliation of all resources of a particular type. The given logger is used to log errors in the background.

Types

This section is empty.

Jump to

Keyboard shortcuts

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