Commit f5415fa0 authored by 智勇's avatar 智勇

去掉tke前缀

parent dc2fd6c1
...@@ -11,7 +11,7 @@ module.exports = router ...@@ -11,7 +11,7 @@ module.exports = router
const keepNamespace = ['default', 'kube-system'] const keepNamespace = ['default', 'kube-system']
router.get('/', async (ctx) => { router.get('/', async (ctx) => {
let data = await ctx.cluster.namespace_get() const data = await ctx.cluster.namespace_get()
data.namespaces = data.namespaces && data.namespaces.filter(item => !keepNamespace.includes(item.name)) data.namespaces = data.namespaces && data.namespaces.filter(item => !keepNamespace.includes(item.name))
ctx.body = ctx.ok(data) ctx.body = ctx.ok(data)
}) })
...@@ -61,7 +61,7 @@ router.post('/init', async (ctx) => { ...@@ -61,7 +61,7 @@ router.post('/init', async (ctx) => {
if (index !== 'common') { if (index !== 'common') {
const data = { const data = {
namespace: body.namespace, namespace: body.namespace,
image: `ccr.ccs.tencentyun.com/qa-${index}/${element}:tke-latest`, image: `ccr.ccs.tencentyun.com/qa-${index}/${element}:latest`,
type: index, type: index,
serviceName: element, serviceName: element,
system_name: element, system_name: element,
......
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