Documentation ¶
Index ¶
Constants ¶
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 ¶
var DefaultMutableFeatureGate featuregate.MutableFeatureGate = featuregate.NewFeatureGate()
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 ¶
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.