Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Values for PreRelease. Alpha = prerelease("ALPHA") Beta = prerelease("BETA") GA = prerelease("") )
Variables ¶
View Source
var (
// DefaultFeatureGate is a shared global FeatureGate.
DefaultFeatureGate = &featureGate{
known: defaultFeatures,
special: specialFeatures,
}
)
Functions ¶
This section is empty.
Types ¶
type FeatureGate ¶
type FeatureGate interface { AddFlag(fs *pflag.FlagSet) Set(value string) error Add(features map[Feature]FeatureSpec) KnownFeatures() []string // owner: @timstclair // beta: v1.4 AppArmor() bool // owner: @girishkalele // alpha: v1.4 ExternalTrafficLocalOnly() bool // owner: @saad-ali // alpha: v1.3 DynamicVolumeProvisioning() bool // owner: @mtaufen // alpha: v1.4 DynamicKubeletConfig() bool // owner: timstclair // alpha: v1.5 StreamingProxyRedirects() bool // owner: @pweil- // alpha: v1.5 ExperimentalHostUserNamespaceDefaulting() bool // owner: @davidopp // alpha: v1.6 // TODO: remove when alpha support for affinity is removed AffinityInAnnotations() bool }
FeatureGate parses and stores flag gates for known features from a string like feature1=true,feature2=false,...
type FeatureSpec ¶
type FeatureSpec struct { Default bool PreRelease prerelease }
Click to show internal directories.
Click to hide internal directories.