ChuanFF commented on code in PR #12288:
URL: https://github.com/apache/apisix/pull/12288#discussion_r2570382932


##########
t/kubernetes/discovery/kubernetes3.t:
##########
@@ -242,6 +242,13 @@ _EOC_
             }
         }
 
+        location /t {
+            content_by_lua_block {
+                ngx.sleep(2)
+                ngx.exit(200)
+            }
+        }
+

Review Comment:
    the test case requires waiting for the k8s endpoints list query to finish, 
so i add a location /t to sleep 2 second. I plan to submit an additional PR 
that improve the function _M.status_ready() in apisix/init.lua to check if 
APISIX's Kubernetes service discovery is ready. Once that is implemented, the 
2-second sleep will be replaced with a wait for the readiness check.



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