Documentation ¶
Index ¶
- Constants
- func ToContext(ctx context.Context, features *KafkaFeatureFlags) context.Context
- type KafkaFeatureFlags
- func (f *KafkaFeatureFlags) ExecuteBrokersTopicTemplate(brokerMetadata v1.ObjectMeta) (string, error)
- func (f *KafkaFeatureFlags) ExecuteChannelsTopicTemplate(channelMetadata v1.ObjectMeta) (string, error)
- func (f *KafkaFeatureFlags) ExecuteTriggersConsumerGroupTemplate(triggerMetadata v1.ObjectMeta) (string, error)
- func (f *KafkaFeatureFlags) IsControllerAutoscalerEnabled() bool
- func (f *KafkaFeatureFlags) IsDispatcherOrderedExecutorMetricsEnabled() bool
- func (f *KafkaFeatureFlags) IsDispatcherRateLimiterEnabled() bool
- func (f *KafkaFeatureFlags) Reset(ff *KafkaFeatureFlags)
- type Store
- type Stores
Constants ¶
View Source
const (
FlagsConfigName = "config-kafka-features"
)
Variables ¶
This section is empty.
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.