config

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// IstioConfig is the name of config map for the Istio config features.
	IstioConfig = "config-features"

	// IstioConfigKey is the key in IstioConfig ConfigMap for the feature flag enabled or disable.
	IstioConfigKey = "istio"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Istio feature.Flag `json:"istio"`
}

func Load

func Load(store *Store) *Config

func NewDefaultConfig

func NewDefaultConfig(options ...Option) (*Config, error)

func (Config) IsEnabled

func (c Config) IsEnabled() bool

type Option

type Option func(config *Config) error

func WithEnabled

func WithEnabled() Option

type Store

type Store struct {
	*configmap.UntypedStore
}

Store is a typed wrapper around configmap.Untyped store to handle our configmaps. +k8s:deepcopy-gen=false

func NewStore

func NewStore(ctx context.Context, onAfterStore ...func(name string, value interface{})) *Store

Jump to

Keyboard shortcuts

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