lingsamuel commented on code in PR #1320:
URL:
https://github.com/apache/apisix-ingress-controller/pull/1320#discussion_r966790563
##########
pkg/providers/apisix/translation/apisix_route.go:
##########
@@ -136,8 +137,10 @@ func (t *translator) translateHTTPRouteV2beta2(ctx
*translation.TranslateContext
if !plugin.Enable {
continue
}
- if plugin.Config != nil {
- pluginMap[plugin.Name] = plugin.Config
+ if plugin.Config.Size() > 0 {
+ config := map[string]interface{}{}
+ _ = json.Unmarshal(plugin.Config.Raw, &config)
Review Comment:
Why the error is ignored?
--
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]