featuregate

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StoreUpgrade                    = declareFeatureGate("StoreUpgrade", true, true, "Enable store upgrading.")
	StoreDynamicConfig              = declareFeatureGate("StoreDynamicConfig", false, true, "Enable dynamic config updating on stores.")
	AutoDataRebalance               = declareFeatureGate("AutoDataRebalance", true, true, "Rebalance data automatically when scaling.")
	WaitDrainedNodeToBeOffline      = declareFeatureGate("WaitDrainedNodeToBeOffline", true, true, "Enable waiting until drained nodes are marked offline when no CDC nodes found.")
	EnableGalaxyClusterMode         = declareFeatureGate("EnableGalaxyCluster", true, false, "Enable cluster mode on galaxy store engine.")
	EnforceQoSGuaranteed            = declareFeatureGate("EnforceQoSGuaranteed", false, false, "Enforce pod's QoS to Guaranteed.")
	ResetTrustIpsBeforeStart        = declareFeatureGate("ResetTrustIpsBeforeStart", false, true, "Reset trust ips in CNs to avoid security problems.")
	EnableXStoreWithHeadlessService = declareFeatureGate("EnableXStoreWithHeadlessService", true, false, "Use headless services for pods in xstore.")
)

Feature gates to prevent unstable or developing codes from running.

Functions

func ExtraFeatureGateArg

func ExtraFeatureGateArg() string

func SetupFeatureGates

func SetupFeatureGates(featureGates []string)

Types

type FeatureGate

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

func (*FeatureGate) Description

func (g *FeatureGate) Description() string

func (*FeatureGate) Enabled

func (g *FeatureGate) Enabled() bool

func (*FeatureGate) Key

func (g *FeatureGate) Key() string

Jump to

Keyboard shortcuts

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