featuregate

package
v0.0.0-...-658d3ce Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Every feature gate should add a key here following this template:
	//
	// // Enables FeatureName...
	// FeatureName featuregate.Feature = "FeatureName"
	//
	// - https://releases.k8s.io/v1.20.0/pkg/features/kube_features.go#L27
	//
	// Feature gates should be listed in alphabetical, case-sensitive
	// (upper before any lower case character) order.
	//
	BridgeIdentifiers featuregate.Feature = "BridgeIdentifiers"
	//
	// Enables support of custom sidecars for PostgreSQL instance Pods
	InstanceSidecars featuregate.Feature = "InstanceSidecars"
	//
	// Enables support of custom sidecars for pgBouncer Pods
	PGBouncerSidecars featuregate.Feature = "PGBouncerSidecars"
)

Variables

DefaultMutableFeatureGate is a mutable, shared global FeatureGate. It is used to indicate whether a given feature is enabled or not.

- https://pkg.go.dev/k8s.io/apiserver/pkg/util/feature - https://releases.k8s.io/v1.20.0/staging/src/k8s.io/apiserver/pkg/util/feature/feature_gate.go#L24-L28

Functions

func AddAndSetFeatureGates

func AddAndSetFeatureGates(features string) error

AddAndSetFeatureGates utilizes the Kubernetes feature gate packages to first add the default PGO features to the featureGate and then set the values provided via the 'PGO_FEATURE_GATES' environment variable. This function expects a string like feature1=true,feature2=false,...

- https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/ - https://pkg.go.dev/k8s.io/component-base@v0.20.1/featuregate

Types

This section is empty.

Jump to

Keyboard shortcuts

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