kubernetesk8s.io/kubernetes/cmd/kubeadm/app/features Index | Files

package features

import "k8s.io/kubernetes/cmd/kubeadm/app/features"

Index

Constants

const (
	// SelfHosting is beta in v1.8
	SelfHosting utilfeature.Feature = "SelfHosting"

	// StoreCertsInSecrets is alpha in v1.8
	StoreCertsInSecrets utilfeature.Feature = "StoreCertsInSecrets"
)

Variables

var InitFeatureGates = FeatureList{
	SelfHosting:         {Default: false, PreRelease: utilfeature.Alpha},
	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 KnownFeatures

func KnownFeatures(f *FeatureList) []string

KnownFeatures returns a slice of strings describing the FeatureList features.

func NewFeatureGate

func NewFeatureGate(f *FeatureList, value string) (map[string]bool, error)

NewFeatureGate parse a string of the form "key1=value1,key2=value2,..." into a map[string]bool of known keys or returns an error.

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

FeatureList represents a list of feature gates

Source Files

features.go

Version
v1.8.8
Published
Feb 4, 2018
Platform
js/wasm
Imports
5 packages
Last checked
1 minute ago

Tools for package owners.