Commit ab534710 by 据说甜蜜呢

优化脚本

parent b90e2f19
Pipeline #4195 passed with stage
in 23 seconds
...@@ -15,10 +15,7 @@ kubectl create namespace ${namespace} ...@@ -15,10 +15,7 @@ kubectl create namespace ${namespace}
# global variable # global variable
GetAccessToken AccessToken GetAccessToken AccessToken
GetRegistryHost RegistryHost
GetK8sApiServer K8sApiServer GetK8sApiServer K8sApiServer
GetKongApiServer KongApiServer
GetKongRouteDomain KongRouteDomain
for servicePrefix in `ls ./src/Services|xargs -d '/'` for servicePrefix in `ls ./src/Services|xargs -d '/'`
do do
......
...@@ -63,6 +63,9 @@ function createRoute() ...@@ -63,6 +63,9 @@ function createRoute()
GetMajor major GetMajor major
GetNameSpace namespace GetNameSpace namespace
GetKongApiServer KongApiServer
GetKongRouteDomain KongRouteDomain
declare fdnOfK8s="${namespace}.svc.cluster.local" declare fdnOfK8s="${namespace}.svc.cluster.local"
declare kongServiceBaseUrl="${KongApiServer}/services" declare kongServiceBaseUrl="${KongApiServer}/services"
declare kongRouteBaseUrl="${KongApiServer}/routes" declare kongRouteBaseUrl="${KongApiServer}/routes"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment