Documentation ¶
Index ¶
- Constants
- func NewKafkaConfigMap(options ...KafkaConfigMapOption) *corev1.ConfigMap
- func NewKafkaSecret(options ...KafkaSecretOption) *corev1.Secret
- func WithEmptyUsername(secret *corev1.Secret)
- func WithMissingConfig(secret *corev1.Secret)
- func WithModifiedNamespace(secret *corev1.Secret)
- func WithModifiedPassword(secret *corev1.Secret)
- func WithModifiedSaramaAdmin(configMap *corev1.ConfigMap)
- func WithModifiedSaramaConsumer(configMap *corev1.ConfigMap)
- func WithModifiedSaramaMetadata(configMap *corev1.ConfigMap)
- func WithModifiedSaramaNet(configMap *corev1.ConfigMap)
- func WithModifiedSaramaProducer(configMap *corev1.ConfigMap)
- func WithModifiedSaslType(secret *corev1.Secret)
- func WithModifiedUsername(secret *corev1.Secret)
- func WithoutEventingKafkaConfiguration(configMap *corev1.ConfigMap)
- type KafkaConfigMapOption
- type KafkaSecretOption
Constants ¶
const ( DefaultSaramaConfigYaml = `` /* 425-byte string literal not displayed */ DefaultEventingKafkaConfigYaml = ` receiver: cpuRequest: 100m memoryRequest: 64Mi replicas: 1 dispatcher: cpuRequest: 300m memoryRequest: 64Mi replicas: 1 kafka: enableSaramaLogging: false brokers: ` + DefaultKafkaBroker + ` topic: defaultNumPartitions: 4 defaultReplicationFactor: 1 defaultRetentionMillis: 604800000 adminType: kafka ` DefaultKafkaBroker = "TestBroker" DefaultSecretUsername = "TestUsername" DefaultSecretPassword = "TestPassword" DefaultSecretSaslType = "PLAIN" DefaultSecretNamespace = "TestNamespace" )
Constants
Variables ¶
This section is empty.
Functions ¶
func NewKafkaConfigMap ¶
func NewKafkaConfigMap(options ...KafkaConfigMapOption) *corev1.ConfigMap
Create A New Eventing-Kafka ConfigMap For Testing
func NewKafkaSecret ¶ added in v0.21.0
func NewKafkaSecret(options ...KafkaSecretOption) *corev1.Secret
Create A New Eventing-Kafka Secret For Testing
func WithEmptyUsername ¶ added in v0.21.0
Empty The Default Username Section Of The Secret Data
func WithMissingConfig ¶ added in v0.21.0
Remove the Data From The Secret
func WithModifiedNamespace ¶ added in v0.21.0
Modify The Default Namespace Section Of The Secret Data
func WithModifiedPassword ¶ added in v0.21.0
Modify The Default Password Section Of The Secret Data
func WithModifiedSaramaAdmin ¶
Modify The Default "Admin" Section Of The Sarama Config YAML
func WithModifiedSaramaConsumer ¶
Modify The Default "Consumer" Section Of The Sarama Config YAML
func WithModifiedSaramaMetadata ¶
Modify The Default "Net" Section Of The Sarama Config YAML
func WithModifiedSaramaNet ¶
Modify The Default "Net" Section Of The Sarama Config YAML
func WithModifiedSaramaProducer ¶
Modify The Default "Producer" Section Of The Sarama Config YAML
func WithModifiedSaslType ¶ added in v0.21.0
Modify The Default SaslType Section Of The Secret Data
func WithModifiedUsername ¶ added in v0.21.0
Modify The Default Username Section Of The Secret Data
func WithoutEventingKafkaConfiguration ¶
Remove The Entire Eventing-Kafka Configuration
Types ¶
type KafkaConfigMapOption ¶
KafkaConfigMapOption Enables Customization Of An Eventing-Kafka ConfigMap
type KafkaSecretOption ¶ added in v0.21.0
KafkaConfigMapOption Enables Customization Of An Eventing-Kafka Secret