You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the source code, when judging whether to watch endpoint slices, watch_endpoint_slices_schema is used, as follows:
But what is defined in the schema is watch_endpoint_slices:
When determining whether to watch endpoint slices, 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 .
Current Behavior
In the source code, when judging whether to watch endpoint slices,
![image](https://private-user-images.githubusercontent.com/66994884/374820279-0d641773-978d-46e1-bedd-d13762153e35.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk3Nzc4NTksIm5iZiI6MTczOTc3NzU1OSwicGF0aCI6Ii82Njk5NDg4NC8zNzQ4MjAyNzktMGQ2NDE3NzMtOTc4ZC00NmUxLWJlZGQtZDEzNzYyMTUzZTM1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE3VDA3MzIzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNmYmI2ZmZlNDc5YzFjZTI5MDRjMThlYjhkYzliMmI1YjU4OGRhNGFiYzhkMjY5NDAzYzIwYmViNGRlN2ZhM2EmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.iqlWWNExXhof66brJQPALRTGKRacCAKgJSstWsEosWg)
watch_endpoint_slices_schema
is used, as follows:But what is defined in the schema is
![image](https://private-user-images.githubusercontent.com/66994884/374820421-d3c6341f-1672-420e-bb43-5c240135da01.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk3Nzc4NTksIm5iZiI6MTczOTc3NzU1OSwicGF0aCI6Ii82Njk5NDg4NC8zNzQ4MjA0MjEtZDNjNjM0MWYtMTY3Mi00MjBlLWJiNDMtNWMyNDAxMzVkYTAxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE3VDA3MzIzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZlNGFkNGU0NDU1NGM5Nzg5NDM5YjY3OGRlODU1ZDkxMDZjZGNhOTU5NDFmYmRiMjA3NTUzMDI4NzllOWUzNTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.QUeRBHaAGz0DMSQQjeZCL6ksJeOlL09fTjP_-2Qi8pw)
watch_endpoint_slices
:When determining whether to watch endpoint slices, you should use
conf.watch_endpoint_slices
,watch_endpoint_slices_schema
is only a local variable in the lua fileapisix/discovery/kubernetes/schema.lua
. It will not appear in the configuration item schema of discovery kubernetes. The actual variable used in the schema iswatch_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)
The text was updated successfully, but these errors were encountered: