k8sflag

package
v0.0.0-...-8077b7e Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureList

type FeatureList struct {
	// contains filtered or unexported fields
}

func NewFeatureListFromConfigMap

func NewFeatureListFromConfigMap(ctx context.Context, clientset kubernetes.Interface, namespace string) (*FeatureList, error)

NewFeatureListFromConfigMap creates a new feature flag list from the 'feautre-flags' configmap in the provided namespace Feature configuration must be stored in the features key in the configmap

func (*FeatureList) FeatureIsEnabled

func (l *FeatureList) FeatureIsEnabled(name string) bool

func (*FeatureList) GetFeature

func (l *FeatureList) GetFeature(name string) feature.FeatureFlag

GetFeature returns a named feature flag

func (*FeatureList) NotifyChange

func (l *FeatureList) NotifyChange() <-chan struct{}

func (*FeatureList) WatchConfigMap

func (l *FeatureList) WatchConfigMap() context.CancelFunc

Update and notify will create a watch on the configmap and return a notfiy channel that gets written to when the configmap is updated

Jump to

Keyboard shortcuts

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