condition

package
v1.0.0-20221102-166735... Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConditionsIfNeed

func InitConditionsIfNeed(status *v1alpha1.TiflowClusterStatus, now metav1.Time)

Types

type ClusterCondition

type ClusterCondition interface {
	UpdateCondition
	VerifyCondition
}

func NewExecutorConditionManager

func NewExecutorConditionManager(cli client.Client, clientSet kubernetes.Interface, tc *v1alpha1.TiflowCluster) ClusterCondition

func NewMasterConditionManager

func NewMasterConditionManager(cli client.Client, clientSet kubernetes.Interface, tc *v1alpha1.TiflowCluster) ClusterCondition

type Condition

type Condition interface {
	Sync(context.Context) error
	Apply() error
}

func NewTiflowClusterConditionManager

func NewTiflowClusterConditionManager(cli client.Client, clientSet kubernetes.Interface, tc *v1alpha1.TiflowCluster) Condition

type TiflowClusterConditionManager

type TiflowClusterConditionManager struct {
	*v1alpha1.TiflowCluster
	// contains filtered or unexported fields
}

func (*TiflowClusterConditionManager) Apply

func (tcm *TiflowClusterConditionManager) Apply() error

func (*TiflowClusterConditionManager) Sync

type UpdateCondition

type UpdateCondition interface {
	Update(context.Context, *appsv1.StatefulSet) error
}

type VerifyCondition

type VerifyCondition interface {
	Verify(context.Context) error
}

Jump to

Keyboard shortcuts

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