kevinw66 opened a new pull request #5675:
URL: https://github.com/apache/apisix/pull/5675


   Thanks for review my first pull request for apisix.
   And this is my first time use lua. Give me some advices if possible, thanks.
   
   This is about read default value when ENV not set, I think this may helpful 
when using k8s in different environment and did not want to set so many ENV 
variable
   
   result:
   etcd.host = http://${{ETCD_HOST}}:2379
   
   
![image](https://user-images.githubusercontent.com/31196226/144431185-3a7593c4-18c8-422e-94ba-ae1c537bc452.png)
   
   etcd.host = http://${{ETCD_HOST:123ss}}:2379
   
![image](https://user-images.githubusercontent.com/31196226/144431261-8351f67e-ce36-4ef7-8556-3fa2b9d203b2.png)
   
   etcd.host = http://${{ETCD_HOST:123ss:123aa}}:2379
   
![image](https://user-images.githubusercontent.com/31196226/144431359-5bd4a789-45d6-4d4b-afb7-edbb773490cc.png)
   
   


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