podopslifecycle

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: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

func AddToMgr

func AddToMgr(mgr manager.Manager, r reconcile.Reconciler) error

func PodIDAndTypesMap

func PodIDAndTypesMap(pod *corev1.Pod) (map[string]map[string]string, map[string]int, error)

PodIDAndTypesMap returns a map of pod id to labels map and a map of operation type to number of pods.

Types

type NeedOpsLifecycle

type NeedOpsLifecycle func(oldPod, newPod *corev1.Pod) bool

type PodPredicate

type PodPredicate struct {
	NeedOpsLifecycle // Check if pod need be reconciled
}

func (*PodPredicate) Create

func (pp *PodPredicate) Create(evt event.CreateEvent) bool

func (*PodPredicate) Delete

func (pp *PodPredicate) Delete(evt event.DeleteEvent) bool

func (*PodPredicate) Generic

func (pp *PodPredicate) Generic(evt event.GenericEvent) bool

func (*PodPredicate) Update

func (pp *PodPredicate) Update(evt event.UpdateEvent) bool

type ReconcilePodOpsLifecycle

type ReconcilePodOpsLifecycle struct {
	*mixin.ReconcilerMixin
	// contains filtered or unexported fields
}

func NewReconciler

func NewReconciler(mgr manager.Manager) *ReconcilePodOpsLifecycle

func (*ReconcilePodOpsLifecycle) Reconcile

Jump to

Keyboard shortcuts

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