Kafka connection is currently configured via plain environment variables (KAFKA_BROKERS, KAFKA_TOPICS, KAFKA_CONSUMER_GROUP). An alternative would be a structured middleware.kafka section in func.yaml for brokers, topics, consumer group, and auth settings. The CLI would translate this into environment variables at build/deploy time.
This may not be necessary — env vars work well and are already supported via func config envs add with plain values, Secrets, and ConfigMaps. A structured config section would add convenience but also complexity. Needs discussion on whether the value justifies the cost.
Kafka connection is currently configured via plain environment variables (
KAFKA_BROKERS,KAFKA_TOPICS,KAFKA_CONSUMER_GROUP). An alternative would be a structuredmiddleware.kafkasection infunc.yamlfor brokers, topics, consumer group, and auth settings. The CLI would translate this into environment variables at build/deploy time.This may not be necessary — env vars work well and are already supported via
func config envs addwith plain values, Secrets, and ConfigMaps. A structured config section would add convenience but also complexity. Needs discussion on whether the value justifies the cost.