Documentation
¶
Index ¶
- Variables
- func Add(mgr manager.Manager) error
- func AddToMgr(mgr manager.Manager, r reconcile.Reconciler) error
- func IDToLabelsMap(pod *corev1.Pod) (map[string]map[string]string, map[string]int, error)
- func IsLifecycleOnPod(lifecycleId string, pod *corev1.Pod) (bool, error)
- func NumOfLifecycleOnPod(pod *corev1.Pod) (int, error)
- type NeedOpsLifecycle
- type PodPredicate
- type ReconcilePodOpsLifecycle
Constants ¶
This section is empty.
Variables ¶
View Source
var (
IsPodReadyFunc = controllersutils.IsPodReady
)
Functions ¶
func IDToLabelsMap ¶ added in v0.6.1
IDToLabelsMap returns a map of pod id to labels map and a map of operation type to number of pods.
func IsLifecycleOnPod ¶
IsLifecycleOnPod returns true if the lifecycle with lifecycleId exist on pod, otherwise returns false
Types ¶
type NeedOpsLifecycle ¶
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
Click to show internal directories.
Click to hide internal directories.