controllers

package
v0.2.1-0...-90e585d Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithLogger

func ContextWithLogger(parent context.Context, logger logr.Logger) context.Context

Add a logger to the given context, to make it easier passing it around.

func EnsureCommonFinalizer

func EnsureCommonFinalizer(
	ctx context.Context, obj client.Object,
	c client.Client, cacheFinalizer string,
) error

func HandleCommonDeletion

func HandleCommonDeletion(
	ctx context.Context, obj client.Object,
	c client.Client, dw dynamicWatchFreer,
	cacheFinalizer string,
) error

func LoggerFromContext

func LoggerFromContext(ctx context.Context) logr.Logger

Get the logger from the given context. Returning a discarding logger, if none was set.

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