terminate

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsMissingFinalizerError

func IsMissingFinalizerError(err error) bool

IsMissingFinalizerError returns 'true' if the given error is a MissingFinalizerError

func Terminate

func Terminate(metadata []ResourceMetadata, kubeconfigReader io.Reader, log logger.Logger) error

Terminate terminates the resource with the given type and name, ie, it removes all pending finalizers and deletes it afterwards

Types

type MissingFinalizerError

type MissingFinalizerError struct {
	// contains filtered or unexported fields
}

MissingFinalizerError the error to return during the resource check when the latter has not 'kubernetes' finalizer

func (MissingFinalizerError) Error

func (e MissingFinalizerError) Error() string

type ResourceMetadata

type ResourceMetadata struct {
	Kind      string
	Namespace string
	Name      string
}

ResourceMetadata the metadata of the resource to delete

Jump to

Keyboard shortcuts

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