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
5cdabb3a
Commit
5cdabb3a
authored
Mar 30, 2019
by
kewei.jia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码校验
parent
21737355
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
namespace.js
app/namespace.js
+1
-1
ingress.js
kubeService/ingress.js
+0
-1
No files found.
app/namespace.js
View file @
5cdabb3a
...
@@ -92,7 +92,7 @@ function generateUUID() {
...
@@ -92,7 +92,7 @@ function generateUUID() {
const
uuid
=
'
xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx
'
.
replace
(
/
[
xy
]
/g
,
(
c
)
=>
{
const
uuid
=
'
xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx
'
.
replace
(
/
[
xy
]
/g
,
(
c
)
=>
{
const
r
=
(
d
+
Math
.
random
()
*
16
)
%
16
|
0
;
const
r
=
(
d
+
Math
.
random
()
*
16
)
%
16
|
0
;
d
=
Math
.
floor
(
d
/
16
);
d
=
Math
.
floor
(
d
/
16
);
return
(
c
===
'
x
'
?
r
:
(
r
&
0x3
|
0x8
)).
toString
(
16
);
return
(
c
===
'
x
'
?
r
:
(
(
r
&
0x3
)
|
0x8
)).
toString
(
16
);
});
});
return
uuid
;
return
uuid
;
}
}
...
...
kubeService/ingress.js
View file @
5cdabb3a
...
@@ -4,7 +4,6 @@ const config = require('kubernetes-client').config
...
@@ -4,7 +4,6 @@ const config = require('kubernetes-client').config
// const client = new Client({ config: config.fromKubeconfig(), version: '1.9' })
// const client = new Client({ config: config.fromKubeconfig(), version: '1.9' })
console
.
log
(
path
.
resolve
(
__dirname
,
'
./kubeConfig.yaml
'
))
const
client
=
new
Client
({
const
client
=
new
Client
({
config
:
config
.
fromKubeconfig
(
config
:
config
.
fromKubeconfig
(
path
.
resolve
(
__dirname
,
'
./kubeConfig.yaml
'
),
path
.
resolve
(
__dirname
,
'
./kubeConfig.yaml
'
),
...
...
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