Documentation ¶
Index ¶
- func Add(mgr manager.Manager) error
- func AddToMgr(mgr manager.Manager, r reconcile.Reconciler) error
- func IsLifecycleOnPod(lifecycleId string, pod *corev1.Pod) (bool, error)
- func NumOfLifecycleOnPod(pod *corev1.Pod) (int, error)
- func PodIDAndTypesMap(pod *corev1.Pod) (map[string]map[string]string, map[string]int, error)
- type NeedOpsLifecycle
- type PodPredicate
- type ReconcilePodOpsLifecycle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLifecycleOnPod ¶
IsLifecycleOnPod returns true if the lifecycle with lifecycleId exist on pod, otherwise returns false
func NumOfLifecycleOnPod ¶
NumOfLifecycleOnPod returns the nums of lifecycles on pod
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.