stateful

package
v0.6.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type StatefulComponent

type StatefulComponent types.ComponentBase

func (*StatefulComponent) GetPhaseWhenPodsNotReady

func (r *StatefulComponent) GetPhaseWhenPodsNotReady(ctx context.Context, componentName string) (appsv1alpha1.ClusterComponentPhase, error)

GetPhaseWhenPodsNotReady gets the component phase when the pods of component are not ready.

func (*StatefulComponent) HandleProbeTimeoutWhenPodsReady

func (r *StatefulComponent) HandleProbeTimeoutWhenPodsReady(ctx context.Context, recorder record.EventRecorder) (bool, error)

HandleProbeTimeoutWhenPodsReady the Stateful component has no role detection, empty implementation here.

func (*StatefulComponent) HandleUpdate

func (r *StatefulComponent) HandleUpdate(ctx context.Context, obj client.Object) error

func (*StatefulComponent) HandleUpdateWithProcessors

func (r *StatefulComponent) HandleUpdateWithProcessors(ctx context.Context, obj client.Object,
	compStatusProcessor func(compDef *appsv1alpha1.ClusterComponentDefinition, pods []corev1.Pod, componentName string) error,
	priorityMapper func(component *appsv1alpha1.ClusterComponentDefinition) map[string]int,
	serialStrategyHandler, bestEffortParallelStrategyHandler, parallelStrategyHandler func(plan *util.Plan, pods []corev1.Pod, rolePriorityMap map[string]int)) error

HandleUpdateWithProcessors extended HandleUpdate() with custom processors REVIEW/TODO: (nashtsai)

  1. too many args

func (*StatefulComponent) IsRunning

func (r *StatefulComponent) IsRunning(ctx context.Context, obj client.Object) (bool, error)

func (*StatefulComponent) PodIsAvailable

func (r *StatefulComponent) PodIsAvailable(pod *corev1.Pod, minReadySeconds int32) bool

func (*StatefulComponent) PodsReady

func (r *StatefulComponent) PodsReady(ctx context.Context, obj client.Object) (bool, error)

Jump to

Keyboard shortcuts

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