Commit dfb1ce33 by 李二毛

Merge branch 'development' into 'rel/major'

添加accessToken

See merge request liermao/microservice-autodevopspipelines!41
parents 41acf3cb 139b9cea
Pipeline #4153 failed with stages
in 19 seconds
......@@ -13,12 +13,12 @@ echo "Begin creating ${appName}'s settings to the configmap of k8s..."
GetNameSpace namespace
kubectl create namespace ${namespace}
declare servicePrefix=""
GetAccessTokenOf accessToken
for servicePrefix in `ls ./src/Services|xargs -d '/'`
do
GetServiceName ${servicePrefix} serviceName
GetServiceDir ${servicePrefix} ${serviceName} serviceDir
Create ${Environment} ${namespace} ${K8sApiServer} ${serviceDir} ${servicePrefix}
Create ${Environment} ${namespace} ${K8sApiServer} ${serviceDir} ${servicePrefix} ${accessToken}
done
echo ""
......
......@@ -19,7 +19,7 @@ function Create()
curl -X DELETE $deleteUrl -k \
--connect-timeout $2 --max-time $3 --retry $4 \
-H 'Authorization: Bearer '${AccessToken}''
-H 'Authorization: Bearer '${6}''
set -e
......@@ -29,7 +29,7 @@ function Create()
--connect-timeout $2 --max-time $3 --retry $4 \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-H 'Authorization: Bearer '${AccessToken}'' \
-H 'Authorization: Bearer '${6}'' \
-d '{
"kind": "ConfigMap",
"apiVersion": "v1",
......
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