Skip to content

Commit

Permalink
try fix brockerlist
Browse files Browse the repository at this point in the history
  • Loading branch information
felpasl committed Jul 31, 2023
1 parent bb9ab90 commit dd69f92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions deployments/deploy-consumer-azurefunction.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@ spec:
ports:
- containerPort: 80
env:
- name: kafka.bootstrap.servers
- name: APPSETTING_BrokerList
value: kafka.kafka:9092

- name: mp.messaging.incoming.fruit.auto.offset.reset
value: latest
resources:
limits:
cpu: 200m
Expand Down
2 changes: 1 addition & 1 deletion fruit-consumer-azurefunction/ConsumeFruit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class ConsumeFruit
// "KafkaPassword":"{EVENT_HUBS_CONNECTION_STRING}
[FunctionName("Function1")]
public void Run(
[KafkaTrigger("$Brokers",
[KafkaTrigger("$BrokerList",
"fruits",
ConsumerGroup = "consumer-azurefunction-processing")] KafkaEventData<FruitMessage> message,
[Kafka("$Brokers",
Expand Down

0 comments on commit dd69f92

Please sign in to comment.