feature

package
v1.6.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

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 Feature

type Feature string

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
}

Jump to

Keyboard shortcuts

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