stateful

package
v0.5.3-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: AGPL-3.0 Imports: 12 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) 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