meta

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnnotationAsyncTaskTransfer = "xstore/async/transfer"
	AnnotationAsyncTaskBackup   = "xstore/async/backup"
)

Annotations for async tasks.

View Source
const (
	LabelName        = "xstore/name"
	LabelRand        = "xstore/rand"
	LabelRole        = "xstore/role"
	LabelPod         = "xstore/pod"
	LabelNodeRole    = "xstore/node-role"
	LabelServiceType = "xstore/service"
	LabelNodeSet     = "xstore/node-set"
	LabelGeneration  = "xstore/generation"
	LabelPortLock    = "xstore/port-lock"
)
View Source
const (
	RoleLeader    = "leader"
	RoleFollower  = "follower"
	RoleCandidate = "candidate" // Only appears in voting progress
	RoleLogger    = "logger"
	RoleLearner   = "learner"
)

Valid roles

View Source
const (
	ServiceTypeReadWrite = "readwrite"
	ServiceTypeReadOnly  = "readonly"
	ServiceTypeMetrics   = "metrics"
	ServiceTypeHeadless  = "headless"
)

Valid service types.

View Source
const (
	AnnotationBlkioResourceLimit = "xstore/blkio"
)
View Source
const AnnotationControllerHints = "xstore/controller.hints"
View Source
const (
	AnnotationGuideRand = "xstore/guide.rand"
)

AnnotationGuideRand for guiding rand generation.

View Source
const Finalizer = "xstore/finalizer"
View Source
const (
	HintForbidden = "forbidden"
)

Variables

This section is empty.

Functions

func IsPodRoleCandidate

func IsPodRoleCandidate(pod *corev1.Pod) bool

func IsPodRoleLearner

func IsPodRoleLearner(pod *corev1.Pod) bool

func IsPodRoleVoter

func IsPodRoleVoter(pod *corev1.Pod) bool

func IsRoleFollower

func IsRoleFollower(pod *corev1.Pod) bool

func IsRoleLeader

func IsRoleLeader(pod *corev1.Pod) bool

func PodRole2DefaultRole

func PodRole2DefaultRole(nodeRole polardbxv1xstore.NodeRole) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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