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 ¶
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.
Click to show internal directories.
Click to hide internal directories.