Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tke-eos
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
tke-eos
Commits
d60ce6db
Commit
d60ce6db
authored
Sep 04, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get_namespace_for_jenkins
parent
53599309
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
namespace.js
app/namespace.js
+2
-7
No files found.
app/namespace.js
View file @
d60ce6db
...
@@ -13,14 +13,9 @@ router.get('/', async (ctx) => {
...
@@ -13,14 +13,9 @@ router.get('/', async (ctx) => {
})
})
router
.
get
(
'
/get_namespace_for_jenkins
'
,
async
(
ctx
)
=>
{
router
.
get
(
'
/get_namespace_for_jenkins
'
,
async
(
ctx
)
=>
{
const
data
=
await
ctx
.
cluster
.
namespace_get
(
)
const
data
=
await
getAllNamespace
(
ctx
.
client
)
const
ret
=
data
.
namespaces
.
map
(
item
=>
item
.
name
)
const
ret
=
data
.
namespaces
.
map
(
item
=>
item
.
name
)
ctx
.
body
=
ret
.
filter
((
item
)
=>
{
ctx
.
body
=
ret
.
join
(
'
\n
'
)
if
(
!
[
'
default
'
,
'
kube-system
'
].
includes
(
item
))
{
return
item
}
return
null
}).
join
(
'
\n
'
)
})
})
...
...
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