MrLinMH opened a new issue, #11631:
URL: https://github.com/apache/apisix/issues/11631

   ### Current Behavior
   
   In the source code, when judging whether endpointslice is true, 
`watch_endpoint_slices_schema` is used, as follows:
   
![image](https://github.com/user-attachments/assets/0d641773-978d-46e1-bedd-d13762153e35)
   
   But what is defined in the schema is `watch_endpoint_slices`: 
   
![image](https://github.com/user-attachments/assets/d3c6341f-1672-420e-bb43-5c240135da01)
   
   When determining whether to use endpointslice, you should use 
`conf.watch_endpoint_slices` , `watch_endpoint_slices_schema` is only a local 
variable in the lua file `apisix/discovery/kubernetes/schema.lua` . It will not 
appear in the configuration item schema of discovery kubernetes. The actual 
variable used in the schema is `watch_endpoint_slices` .
   
   ### Expected Behavior
   
   _No response_
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   PR: https://github.com/apache/apisix/pull/10916/files
   
   
   ### Environment
   
   APISIX version: 3.9.0 (master branch also has this problem)


-- 
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]

Reply via email to