finalizer

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const NfsPvcDeletionFinalizer = "nfspvc.dana.io/nfspvc-protection"

Variables

This section is empty.

Functions

func EnsureFinalizer

func EnsureFinalizer(ctx context.Context, nfspvc danaiov1alpha1.NfsPvc, k8sClient client.Client, log logr.Logger) error

EnsureFinalizer ensures the nfspvc has the finalizer.

func HandleResourceDeletion

func HandleResourceDeletion(ctx context.Context, nfspvc danaiov1alpha1.NfsPvc, log logr.Logger, k8sClient client.Client) (error, bool)

HandleResourceDeletion ensures the deletion of the nfspvc.

func IsFailedCleanUp

func IsFailedCleanUp(err error) bool

IsFailedCleanUp returns true if the specified error is FailedCleanUpError.

Types

type FailedCleanUpError

type FailedCleanUpError struct {
	Message string
}

func (*FailedCleanUpError) Error

func (e *FailedCleanUpError) Error() string

Error implements the error interface for FailedCleanUpError.

Jump to

Keyboard shortcuts

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