k8s

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 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 resoruce 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(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