config

package
v0.42.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	FlagsConfigName = "config-kafka-features"
)

Variables

This section is empty.

Functions

func ToContext

func ToContext(ctx context.Context, features *KafkaFeatureFlags) context.Context

Types

type KafkaFeatureFlags

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

func DefaultFeaturesConfig

func DefaultFeaturesConfig() *KafkaFeatureFlags

func FromContext

func FromContext(ctx context.Context) *KafkaFeatureFlags

func NewFeaturesConfigFromMap added in v0.38.0

func NewFeaturesConfigFromMap(cm *corev1.ConfigMap) (*KafkaFeatureFlags, error)

NewFeaturesConfigFromMap creates a Features from the supplied Map

func (*KafkaFeatureFlags) ExecuteBrokersTopicTemplate added in v0.38.0

func (f *KafkaFeatureFlags) ExecuteBrokersTopicTemplate(brokerMetadata v1.ObjectMeta) (string, error)

func (*KafkaFeatureFlags) ExecuteChannelsTopicTemplate added in v0.38.0

func (f *KafkaFeatureFlags) ExecuteChannelsTopicTemplate(channelMetadata v1.ObjectMeta) (string, error)

func (*KafkaFeatureFlags) ExecuteTriggersConsumerGroupTemplate added in v0.37.0

func (f *KafkaFeatureFlags) ExecuteTriggersConsumerGroupTemplate(triggerMetadata v1.ObjectMeta) (string, error)

func (*KafkaFeatureFlags) IsControllerAutoscalerEnabled added in v0.35.0

func (f *KafkaFeatureFlags) IsControllerAutoscalerEnabled() bool

func (*KafkaFeatureFlags) IsDispatcherOrderedExecutorMetricsEnabled added in v0.33.0

func (f *KafkaFeatureFlags) IsDispatcherOrderedExecutorMetricsEnabled() bool

func (*KafkaFeatureFlags) IsDispatcherRateLimiterEnabled

func (f *KafkaFeatureFlags) IsDispatcherRateLimiterEnabled() bool

func (*KafkaFeatureFlags) Reset

func (f *KafkaFeatureFlags) Reset(ff *KafkaFeatureFlags)

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 *KafkaFeatureFlags)) *Store

NewStore creates a new store of Configs and optionally calls functions when ConfigMaps are updated.

func (*Store) Load

func (s *Store) Load() *KafkaFeatureFlags

Load creates a Config from the current config state of the Store.

func (*Store) ToContext

func (s *Store) ToContext(ctx context.Context) context.Context

ToContext attaches the current Config state to the provided context.

type Stores added in v0.41.0

type Stores []reconciler.ConfigStore

func (Stores) ToContext added in v0.41.0

func (css Stores) ToContext(ctx context.Context) context.Context

Jump to

Keyboard shortcuts

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