dongjiang1989 commented on code in PR #10916:
URL: https://github.com/apache/apisix/pull/10916#discussion_r1478332625
##########
apisix/discovery/kubernetes/init.lua:
##########
@@ -367,8 +430,12 @@ local function single_mode_init(conf)
end
local default_weight = conf.default_weight
-
- local endpoints_informer, err = informer_factory.new("", "v1",
"Endpoints", "endpoints", "")
+ local endpoints_informer, err
+ if conf.watch_endpoint_slices_schema then
Review Comment:
```suggestion
if conf.watch_endpoint_slices_schema then
```
--
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]