terminator

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeletePodTerminator

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

DeletePodTerminator simply asks k8s to delete the victim pod.

func NewDeletePodTerminator

func NewDeletePodTerminator(client kubernetes.Interface, logger log.FieldLogger, gracePeriod time.Duration) *DeletePodTerminator

NewDeletePodTerminator creates and returns a DeletePodTerminator object.

func (*DeletePodTerminator) Terminate

func (t *DeletePodTerminator) Terminate(ctx context.Context, victim v1.Pod) error

Terminate sends a request to Kubernetes to delete the pod.

type Terminator

type Terminator interface {
	// Terminate terminates the given pod.
	Terminate(ctx context.Context, victim v1.Pod) error
}

Terminator is the interface for implementations of pod terminators.

Jump to

Keyboard shortcuts

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