Documentation
¶
Index ¶
Constants ¶
View Source
const ( // SelfHosting is beta in v1.8 SelfHosting utilfeature.Feature = "SelfHosting" // StoreCertsInSecrets is alpha in v1.8 StoreCertsInSecrets utilfeature.Feature = "StoreCertsInSecrets" )
Variables ¶
View Source
var InitFeatureGates = FeatureList{ SelfHosting: {Default: false, PreRelease: utilfeature.Beta}, StoreCertsInSecrets: {Default: false, PreRelease: utilfeature.Alpha}, }
InitFeatureGates are the default feature gates for the init command
Functions ¶
func Enabled ¶
func Enabled(featureList map[string]bool, featureName utilfeature.Feature) bool
Enabled indicates whether a feature name has been enabled
func Keys ¶
func Keys(featureList FeatureList) []string
Keys returns a slice of feature names for a given feature set
func Supports ¶
func Supports(featureList FeatureList, featureName string) bool
Supports indicates whether a feature name is supported on the given feature set
Types ¶
type FeatureList ¶
type FeatureList map[utilfeature.Feature]utilfeature.FeatureSpec
FeatureList represents a list of feature gates
Click to show internal directories.
Click to hide internal directories.