Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
microservice-autodevopspipelines
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李春生
microservice-autodevopspipelines
Commits
139b9cea
Commit
139b9cea
authored
Jan 09, 2019
by
据说甜蜜呢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加accessToken
parent
4607d90c
Pipeline
#4152
passed with stage
in 23 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
devops/PipeLines/Creation/002_CreateConfig.sh
+2
-2
devops/PipeLines/Functions.config.sh
+2
-2
No files found.
devops/PipeLines/Creation/002_CreateConfig.sh
View file @
139b9cea
...
...
@@ -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
""
...
...
devops/PipeLines/Functions.config.sh
View file @
139b9cea
...
...
@@ -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",
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment