member

package
v0.0.0-...-9e299b5 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const ComponentProxy = "proxy"
View Source
const (
	RoleInstanceLabelKey string = "bcrds.cmss.com/role"
)

Variables

This section is empty.

Functions

func IsTiDBAllComponentsHealthy

func IsTiDBAllComponentsHealthy(tc *pcv1alpha1.TidbCluster) bool

This judgment method is more strict and is used to judge whether the creation and restart are completed

func IsTiDBAvailable

func IsTiDBAvailable(tc *pcv1alpha1.TidbCluster) bool

The minimum number of replicas of each component of tidb that meet the health requirements

func NewProxyMemberManager

func NewProxyMemberManager(dependencies *controller.Dependencies) manager.Manager

NewProxyMemberManager returns a *proxyMemberManager

func NewSldbFinalizerMemberManager

func NewSldbFinalizerMemberManager(dependencies *controller.Dependencies) manager.Manager

NewTCMemberManager returns a *tcMemberManager

func NewSldbFreezeMemberManager

func NewSldbFreezeMemberManager(dependencies *controller.Dependencies) manager.Manager

func NewSldbPhaseMemberManager

func NewSldbPhaseMemberManager(dependencies *controller.Dependencies) manager.Manager

NewTCMemberManager returns a *tcMemberManager

func NewTCMemberManager

func NewTCMemberManager(dependencies *controller.Dependencies) manager.Manager

NewTCMemberManager returns a *tcMemberManager

Types

type FakeTcMemberManager

type FakeTcMemberManager struct {
	// contains filtered or unexported fields
}

func NewFakeTcMemberManager

func NewFakeTcMemberManager() *FakeTcMemberManager

func (*FakeTcMemberManager) SetSyncError

func (m *FakeTcMemberManager) SetSyncError(err error)

func (*FakeTcMemberManager) Sync

type StatusUpdater

type StatusUpdater interface {
	// Upgrade upgrade the cluster
	StatusUpdate(*v1alpha1.ServerlessDB) (*v1alpha1.ServerlessDBStatus, error)
}

StatusUpdater implements the logic for StatusUpdater the serverlessdb.

Jump to

Keyboard shortcuts

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