nic-6443 commented on code in PR #12057:
URL: https://github.com/apache/apisix/pull/12057#discussion_r2009845619


##########
apisix/discovery/kubernetes/init.lua:
##########
@@ -324,23 +333,31 @@ local function get_apiserver(conf)
             return nil, err
         end
     elseif conf.client.token_file and conf.client.token_file ~= "" then
-        local file
-        file, err = read_env(conf.client.token_file)
-        if err then
-            return nil, err
-        end
+        setmetatable(apiserver, {
+            __index = function(_, key)
+                if key ~= "token" then

Review Comment:
   can we use same way like 
https://github.com/apache/apisix/blob/8179784fe68f67fbf79e0110ba8f6f3a5ad56c63/apisix/plugins/body-transformer.lua#L176



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