devops-utils-tools opened a new issue #861: URL: https://github.com/apache/apisix-ingress-controller/issues/861
### Issue description plugin kafka-logger configuration error ### Environment - your apisix-ingress-controller version (output of apisix-ingress-controller version --long): - your Kubernetes cluster version (output of kubectl version): - if you run apisix-ingress-controller in Bare-metal environment, also show your OS version (uname -a): ### Minimal test code / Steps to reproduce  ### Actual result source yaml ``` apiVersion: apisix.apache.org/v2beta3 kind: ApisixRoute metadata: name: method-route spec: http: - name: method backends: - serviceName: kubernetes servicePort: 443 match: methods: - GET paths: - /111 plugins: - name: request-id enable: true config: include_in_response: true header_name: "X-Request-Id" - name: cors enable: true - name: proxy-rewrite enable: true config: regex_uri: - ^/case/(.*) - /newcase/$1 - name: kafka-logger enable: true config: # broker_list: "{192.168.25.111:9092}" broker_list: - "192.168.25.111:9092" kafka_topic: apisix_method name: kafka-logger-method key: kafka-logger-method producer_type: async batch_max_size: 3000 inactive_timeout: 30 buffer_duration: 300 retry_delay: 5 max_retry_count: 3 ``` ### Error log error log ``` [GIN] 2022/02/11 - 09:50:19 | 200 | 61.689µs | 192.168.25.63 | GET "/healthz" [GIN] 2022/02/11 - 09:50:20 | 200 | 42.786µs | 192.168.25.63 | GET "/healthz" [GIN] 2022/02/11 - 09:50:29 | 200 | 52.027µs | 192.168.25.63 | GET "/healthz" [GIN] 2022/02/11 - 09:50:30 | 200 | 44.317µs | 192.168.25.63 | GET "/healthz" [GIN] 2022/02/11 - 09:50:39 | 200 | 62.893µs | 192.168.25.63 | GET "/healthz" [GIN] 2022/02/11 - 09:50:40 | 200 | 59.451µs | 192.168.25.63 | GET "/healthz" 2022-02-11T09:50:41+08:00 error apisix/route.go:164 failed to create route: unexpected status code 400; error message: {"error_msg":"failed to check the configuration of plugin kafka-logger err: property \"broker_list\" validation failed: wrong type: expected object, got table"} 2022-02-11T09:50:41+08:00 warn ingress/apisix_route.go:307 sync ApisixRoute failed, will retry {"object": {"Type":1,"Object":{"Key":"default/method-route","OldObject":null,"GroupVersion":"apisix.apache.org/v2beta1"},"Tombstone":null}, "error": "1 error occurred:\n\t* unexpected status code 400; error message: {\"error_msg\":\"failed to check the configuration of plugin kafka-logger err: property \\\"broker_list\\\" validation failed: wrong type: expected object, got table\"}\n\n\n"} ``` ### Expected result _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
