stateless

package
v0.5.2-beta.5 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2023 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const NewRSAvailableReason = "NewReplicaSetAvailable"

NewRSAvailableReason is added in a deployment when its newest replica set is made available ie. the number of new pods that have passed readiness checks and run for at least minReadySeconds is at least the minimum available pods that need to run for the deployment.

Variables

This section is empty.

Functions

Types

type StatelessComponent

type StatelessComponent types.ComponentBase

func (*StatelessComponent) GetPhaseWhenPodsNotReady

func (stateless *StatelessComponent) GetPhaseWhenPodsNotReady(ctx context.Context,
	componentName string) (appsv1alpha1.ClusterComponentPhase, error)

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

func (*StatelessComponent) HandleProbeTimeoutWhenPodsReady

func (stateless *StatelessComponent) HandleProbeTimeoutWhenPodsReady(ctx context.Context,
	recorder record.EventRecorder) (bool, error)

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

func (*StatelessComponent) HandleUpdate

func (stateless *StatelessComponent) HandleUpdate(ctx context.Context, obj client.Object) error

func (*StatelessComponent) IsRunning

func (stateless *StatelessComponent) IsRunning(ctx context.Context, obj client.Object) (bool, error)

func (*StatelessComponent) PodIsAvailable

func (stateless *StatelessComponent) PodIsAvailable(pod *corev1.Pod, minReadySeconds int32) bool

func (*StatelessComponent) PodsReady

func (stateless *StatelessComponent) 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