podcontrol

package
v0.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterOutInactivePod

func FilterOutInactivePod(pods []corev1.Pod) []*corev1.Pod

func IsPodInactive

func IsPodInactive(pod *corev1.Pod) bool

Types

type Interface

type Interface interface {
	GetFilteredPods(selector *metav1.LabelSelector, owner client.Object) ([]*corev1.Pod, error)
	CreatePod(pod *corev1.Pod) (*corev1.Pod, error)
	DeletePod(pod *corev1.Pod) error
	UpdatePod(pod *corev1.Pod) error
	PatchPod(pod *corev1.Pod, patch client.Patch) error
}

func NewRealPodControl

func NewRealPodControl(client client.Client, scheme *runtime.Scheme) Interface

type RealPodControl

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

func (*RealPodControl) CreatePod

func (pc *RealPodControl) CreatePod(pod *corev1.Pod) (*corev1.Pod, error)

func (*RealPodControl) DeletePod

func (pc *RealPodControl) DeletePod(pod *corev1.Pod) error

func (*RealPodControl) GetFilteredPods

func (pc *RealPodControl) GetFilteredPods(selector *metav1.LabelSelector, owner client.Object) ([]*corev1.Pod, error)

func (*RealPodControl) PatchPod added in v0.3.0

func (pc *RealPodControl) PatchPod(pod *corev1.Pod, patch client.Patch) error

func (*RealPodControl) UpdatePod

func (pc *RealPodControl) UpdatePod(pod *corev1.Pod) error

Jump to

Keyboard shortcuts

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