podmanager

package
v0.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodManager

type PodManager interface {
	GetPodByName(ctx context.Context, namespace, podName string) (*corev1.Pod, error)
	GetOwnerType(ctx context.Context, pod *corev1.Pod) types.OwnerType
	CheckPodStatus(ctx context.Context, pod *corev1.Pod) (types.PodStatus, bool)
	MergeAnnotations(ctx context.Context, pod *corev1.Pod, annotations map[string]string) error
	MatchLabelSelector(ctx context.Context, namespace, podName string, labelSelector *metav1.LabelSelector) (bool, error)
}

func NewPodManager

func NewPodManager(c client.Client, mgr ctrl.Manager, maxConflictRetrys int) (PodManager, error)

Jump to

Keyboard shortcuts

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