Commit 5cdabb3a authored by kewei.jia's avatar kewei.jia

代码校验

parent 21737355
...@@ -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;
} }
......
...@@ -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'),
......
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