dmcluster

package
v1.5.1-fips Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Ready
	Ready = "Ready"
	// StatefulSetNotUpToDate is added when one of statefulsets is not up to date.
	StatfulSetNotUpToDate = "StatefulSetNotUpToDate"
	// MasterUnhealthy is added when one of dm-master members is unhealthy.
	MasterUnhealthy = "DMMasterUnhealthy"
)

Variables

This section is empty.

Functions

func GetDMClusterCondition

func GetDMClusterCondition(status v1alpha1.DMClusterStatus, condType v1alpha1.DMClusterConditionType) *v1alpha1.DMClusterCondition

GetDMClusterCondition returns the condition with the provided type.

func GetDMClusterReadyCondition

func GetDMClusterReadyCondition(status v1alpha1.DMClusterStatus) *v1alpha1.DMClusterCondition

GetDMClusterReadyCondition extracts the dmcluster ready condition from the given status and returns that. Returns nil if the condition is not present.

func NewDMClusterCondition

func NewDMClusterCondition(condType v1alpha1.DMClusterConditionType, status v1.ConditionStatus, reason, message string) *v1alpha1.DMClusterCondition

NewDMClusterCondition creates a new dmcluster condition.

func SetDMClusterCondition

func SetDMClusterCondition(status *v1alpha1.DMClusterStatus, condition v1alpha1.DMClusterCondition)

SetDMClusterCondition updates the dm cluster to include the provided condition. If the condition that we are about to add already exists and has the same status and reason then we are not going to update.

Types

This section is empty.

Jump to

Keyboard shortcuts

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