features

package
v1.6.0-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// StableScheduling controls stable scheduling of TiDB members.
	StableScheduling string = "StableScheduling"

	// AdvancedStatefulSet controls whether to use AdvancedStatefulSet to manage pods
	AdvancedStatefulSet string = "AdvancedStatefulSet"

	// AutoScaling controls whether to use TidbClusterAutoScaler to auto scale-in/out pods
	AutoScaling string = "AutoScaling"

	// VolumeModifying controls whether allow to modify volumes
	// NOTE: volume resize is always allowed even if this feature is disabled
	VolumeModifying string = "VolumeModifying"

	// VolumeReplacing controls whether to replace whole volumes by deleting and recreating on changes.
	// tidb, tikv & pd supported. If enabled takes precedence over resizing/modifying.
	VolumeReplacing string = "VolumeReplacing"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureGate

type FeatureGate interface {
	// AddFlag adds a flag for setting global feature gates to the specified FlagSet.
	AddFlag(flagset *flag.FlagSet)
	// Enabled returns true if the key is enabled.
	Enabled(key string) bool
	// Set parses and stores flag gates for known features
	// from a string like feature1=true,feature2=false,...
	Set(value string) error
	// SetFromMap stores flag gates for enabled features from a map[string]bool
	SetFromMap(m map[string]bool)
	// String returns a string representation of feature gate.
	String() string
}
var (

	// DefaultFeatureGate is a shared global FeatureGate.
	DefaultFeatureGate FeatureGate = NewDefaultFeatureGate()
)

func NewDefaultFeatureGate added in v1.1.3

func NewDefaultFeatureGate() FeatureGate

func NewFeatureGate

func NewFeatureGate() FeatureGate

Jump to

Keyboard shortcuts

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