featuregate

package
v0.145.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FeatureGatesFlag = "feature-gates"
)

Variables

View Source
var (
	// SetGolangFlags is the feature gate that enables automatically setting GOMEMLIMIT and GOMAXPROCS for the
	// collector, bridge, and target allocator.
	SetGolangFlags = featuregate.GlobalRegistry().MustRegister(
		"operator.golang.flags",
		featuregate.StageBeta,
		featuregate.WithRegisterDescription("enables feature to set GOMEMLIMIT and GOMAXPROCS automatically"),
		featuregate.WithRegisterFromVersion("v0.100.0"),
	)
	// EnableTargetAllocatorMTLS is the feature gate that enables mTLS between the target allocator and the collector.
	EnableTargetAllocatorMTLS = featuregate.GlobalRegistry().MustRegister(
		"operator.targetallocator.mtls",
		featuregate.StageAlpha,
		featuregate.WithRegisterDescription("enables mTLS between the target allocator and the collector"),
		featuregate.WithRegisterFromVersion("v0.111.0"),
	)
	// EnableTargetAllocatorFallbackStrategy is the feature gate that enables consistent-hashing as the fallback
	// strategy for allocation strategies that might not assign all jobs (per-node).
	EnableTargetAllocatorFallbackStrategy = featuregate.GlobalRegistry().MustRegister(
		"operator.targetallocator.fallbackstrategy",
		featuregate.StageAlpha,
		featuregate.WithRegisterDescription("enables fallback allocation strategy for the target allocator"),
		featuregate.WithRegisterFromVersion("v0.114.0"),
	)
	// EnableOperatorNetworkPolicy is the feature gate that enables the operator to create network policies for the operator.
	EnableOperatorNetworkPolicy = featuregate.GlobalRegistry().MustRegister(
		"operator.networkpolicy",
		featuregate.StageAlpha,
		featuregate.WithRegisterDescription("enables the operator to create network policies for the operator"),
		featuregate.WithRegisterFromVersion("v0.132.0"),
	)
	// EnableOperandNetworkPolicy is the feature gate that enables the operator to create network policies for the collector.
	EnableOperandNetworkPolicy = featuregate.GlobalRegistry().MustRegister(
		"operand.networkpolicy",
		featuregate.StageAlpha,
		featuregate.WithRegisterDescription("enables the operator to create network policies for operands,  collector and target allocator are supported"),
	)
	// EnableClusterObservability is the feature gate that enables the ClusterObservability controller.
	EnableClusterObservability = featuregate.GlobalRegistry().MustRegister(
		"operator.clusterobservability",
		featuregate.StageAlpha,
		featuregate.WithRegisterDescription("enables the ClusterObservability controller for managed observability deployment"),
		featuregate.WithRegisterFromVersion("v0.134.0"),
	)
)

Functions

func ApplyFeatureGateOverrides added in v0.144.0

func ApplyFeatureGateOverrides(gates string) error

ApplyFeatureGateOverrides applies feature gate configuration from a comma-separated string. Format matches CLI flag: "gate1,gate2,-gate3" where - prefix disables the gate. This is needed because feature gates are stored in GlobalRegistry(), not in Config struct.

func Flags

func Flags(reg *featuregate.Registry) *flag.FlagSet

Flags creates a new FlagSet that represents the available featuregate flags using the supplied featuregate registry.

Types

This section is empty.

Jump to

Keyboard shortcuts

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