Giter Site home page Giter Site logo

tencent / bk-bcs-saas Goto Github PK

View Code? Open in Web Editor NEW
268.0 18.0 108.0 85.25 MB

蓝鲸智云容器管理平台SaaS(Blueking Container Service)

Home Page: https://bk.tencent.com

License: Other

Smarty 0.09% Python 47.87% Dockerfile 0.01% CSS 6.54% HTML 2.17% Vue 35.14% Shell 0.06% Makefile 0.02% Go 2.43% TypeScript 1.43% Lua 0.44% Kotlin 3.08% Java 0.07% SCSS 0.65%
python golang container docker kubernetes mesos blueking

bk-bcs-saas's Issues

重构 get_dynamic_client 对 access_token 的依赖链路

目前,get_dynamic_client() 函数直接依赖了 access_token。经过探讨后,决定重构这部分依赖逻辑:

  • 增加新对象:BkApiCredential
  • get_dynamic_client() 不再直接依赖 access_token,而是依赖包括鉴权信息的 bke_client 对象
  • 该方法可能会同时增加 PaaSCC 相关 Client 对象

重构统一异常模块

现在项目中异常与错误码模块分散,感觉像定义了几套,需要统一:
backend/utils目录下,errcodes,error_codes和exceptions

部署bcs-app后访问异常

成功部署bcs-app后访问paas.bk.com/o/bk_bcs_app后会重新重定向至paas.bk.com/o/bk_bcs_app/None/console,且后面的None/console会一直向后添加,请问下是什么原因?需要怎么解决?

【组件升级】表格替换

涉及如下页面

  • 节点 - 列表 wl
  • 命名空间 - 列表 hw
  • 变量管理 - 列表 dg
  • Metric管理 - 列表 wl
  • 网络 - service - 列表 ch
  • 网络 - ingress - 列表 ch
  • 网络 - Loadbalancer - 列表 ch
  • 配置 - Configmap - 列表 hw
  • 配置 -Secret - 列表 hw
  • HPA管理 - 列表 hw
  • 存储 - PersistentVolume -列表 wl
  • 存储 - PersistentVolumeClaim -列表 wl
  • 存储 - StorageClass -列表 wl
  • 日志采集 - 日志采集规则 - 列表 ch
  • DB授权配置管理 - 列表 ch
  • 操作审计 - 列表 dg
  • 事件查询 - 列表 hw

bcs-app打包部署后异常

bcs-app打包部署后访问找不到前端资源,bcs-app的前端资源需要自己添加吗?自己把前端资源编译好后应该放在那个路径下呢?(以backend路径层级开始),另外webconsole在没有社区版支持的情况下应该如何启动呢?

npm run public运行报错

Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.

  • options[0] misses the property 'patterns'. Should be:
    [non-empty string | object { from, to?, context?, globOptions?, toType?, force?, flatten?, transform?, cacheTransform?, transformPath?, noErrorOnMissing? }, ...] (should not have fewer than 1 item)
    ValidationError: Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
    at validate (/data/workspace/src/bk-bcs-saas-master/bcs-projmgr/frontend/node_modules/copy-webpack-plugin/node_modules/schema-utils/dist/validate.js:96:11)
    at new CopyPlugin (/data/workspace/src/bk-bcs-saas-master/bcs-projmgr/frontend/node_modules/copy-webpack-plugin/dist/index.js:24:30)
    at module.exports (/data/workspace/src/bk-bcs-saas-master/bcs-projmgr/frontend/webpack.config.js:116:13)
    at handleFunction (/data/workspace/src/bk-bcs-saas-master/bcs-projmgr/frontend/node_modules/webpack-cli/bin/utils/prepareOptions.js:21:13)
    at prepareOptions (/data/workspace/src/bk-bcs-saas-master/bcs-projmgr/frontend/node_modules/webpack-cli/bin/utils/prepareOptions.js:9:5)
    at requireConfig (/data/workspace/src/bk-bcs-saas-master/bcs-projmgr/frontend/node_modules/webpack-cli/bin/utils/convert-argv.js:117:14)
    at /data/workspace/src/bk-bcs-saas-master/bcs-projmgr/frontend/node_modules/webpack-cli/bin/utils/convert-argv.js:123:17
    at Array.forEach ()
    at module.exports (/data/workspace/src/bk-bcs-saas-master/bcs-projmgr/frontend/node_modules/webpack-cli/bin/utils/convert-argv.js:121:15)
    at yargs.parse (/data/workspace/src/bk-bcs-saas-master/bcs-projmgr/frontend/node_modules/webpack-cli/bin/cli.js:71:45)
    at Object.parse (/data/workspace/src/bk-bcs-saas-master/bcs-projmgr/frontend/node_modules/webpack-cli/node_modules/yargs/yargs.js:567:18)
    at /data/workspace/src/bk-bcs-saas-master/bcs-projmgr/frontend/node_modules/webpack-cli/bin/cli.js:49:8
    at Object. (/data/workspace/src/bk-bcs-saas-master/bcs-projmgr/frontend/node_modules/webpack-cli/bin/cli.js:366:3)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object. (/data/workspace/src/bk-bcs-saas-master/bcs-projmgr/frontend/node_modules/webpack/bin/webpack.js:156:2)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! [email protected] public: npm run dll && webpack --mode production
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the [email protected] public script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-06-11T02_39_30_076Z-debug.log

升级容器服务前端控件

容器服务所用前端控件版本较低,不便于后续新功能的开发与扩展,需要规划升级

  • 【组件升级】表格替换 #813

  • 【组件升级】封装bk-switcher #812 hw

  • 【组件升级】封装bk-paging table #811 dg

  • 【组件升级】封装bk-tab #810 hw

  • 【组件升级】封装bk-sideslider #809 hw

  • 【组件升级】封装bk-dropdown #808 ch

  • 【组件升级】封装bk-tooltip #807 ch

  • 【组件升级】封装bk-dialog #806 hw

  • 【组件升级】封装bk-collapse #805 hw

  • 【组件升级】封装bk-checkbox #804 dg

  • 【组件升级】封装bk-input #803 dg

  • 【组件升级】封装bk-select #802 ch

  • 【组件升级】封装bk-button #801 ch

模板集构建release概念模型

模板集实例化后,生成一条release记录。基于release记录,管理和维护后续的CRUD

  • 模板集同名小版本
  • 构建release模型
  • 原有实例化render manifest逻辑适配

集群资源视图 查看类

是BUG反馈还是需求提交(Is this a BUG REPORT or FEATURE REQUEST)? (choose one):
需求提交

期望是什么(What you expected to happen):
以集群纬度展示集群资源,包括工作负载,存储,网络,HPA等信息

备注:
页面资源包含:

  • 命名空间

  • 工作负载

    • deployments
    • daemonSets
    • cronJobs
    • jobs
    • statefulSets
    • pods
    • [pending] gameStatefulSets
    • [pending] gameDeployments
    • [pending] customObjects
  • 网络

    • service
    • ingress
    • endpoints
  • 配置类

    • configMaps
    • secrets
  • [pending] HPA (HorizontalPodAutoscalers)

  • 存储

    • persistentVolume
    • persistentVolumeClaim
    • storageClass
  • RBAC

    • ServiceAccounts
  • 更多资源

重构:对现有 project_id / cluster_id 建模,简化目前大部分函数签名

大多数函数目前都需要接受 project_id、cluster_id 参数,通过增加新的类型,我们可以简化目前的大部分函数签名,比如:

# 调整前:
def get_dynamic_client(access_token: str, project_id: str, cluster_id: str):

# 调整后:
def get_dynamic_client(cluster: AuthedCluster):

更多细节需要讨论后决定

bcs_projmgr访问身份校验不通过

bcs_projmgr部署完成后通过paas平台访问,/user/projects/ 400报错(bkToken参数缺失), /user/users/ 400报错(bk_token参数缺失),在cookie中有bk_token!请问这是什么原因?是需要在哪里添加token信息呢?是bk_token还是bkToken呢?有办法关闭身份校验吗?

添加故障节点的移除功能

需求:

当集群中节点出现故障时,可以允许集群维护人员,删除故障节点记录,并提示维护人员相关注意事项

希望优化包路径问题

是BUG反馈还是需求提交(Is this a BUG REPORT or FEATURE REQUEST)? (choose one):
BUG REPORT
BK-BCS-SaaS 版本(The versions used):
1.12.7
发生了什么(What happened):
导入包路径问题:bcs-cc中的go代码,import使用的是bcs_cc但该目录应该为bcs-cc。 另外由于golang $GOPATH配置后查找的是$GOPATH/src目录下的包,因此无法直接找到import "bcs_cc/config"
期望是什么(What you expected to happen):
优化import路径,例如:import "bk-bcs-saas/bcs_cc/config" 并修正包bcs-cc的包名
如何复现(How to reproduce it):
直接clone代码到idea,就可以看到无法正确找到包和模块
相关的日志详情和截图等(Log & Screenshot):

备注(Anything else we need to know):

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.