featuregates

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeTravelFeatureGate = "timeTravel"
	FgConfigMapName       = "osc-feature-gates"
	OperatorNamespace     = "openshift-sandboxed-containers-operator"
)

Variables

View Source
var DefaultFeatureGates = map[string]bool{
	"timeTravel": false,
}

Functions

func IsEnabled

func IsEnabled(fgStatus *FeatureGateStatus, feature string) bool

Types

type FeatureGateStatus

type FeatureGateStatus struct {
	FeatureGates map[string]bool
}

func NewFeatureGateStatus

func NewFeatureGateStatus(client client.Client) (*FeatureGateStatus, error)

This method returns a new FeatureGateStatus object that contains the status of the feature gates defined in the ConfigMap in the namespace Return default values if the ConfigMap is not found. Return values from the ConfigMap if the ConfigMap is not found. Use default values for missing entries in the ConfigMap. Return an error for any other reason, such as an API error.

Jump to

Keyboard shortcuts

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