-
Notifications
You must be signed in to change notification settings - Fork 102
feat(helm): 添加获取release安装日志功能 #271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
在helm命令中添加--debug参数以输出调试日志 添加获取release安装日志的API接口和前端展示页面
Caution Review failedThe pull request is closed. 📝 WalkthroughSummary by CodeRabbit
Walkthrough本次变更为 Helm Release 控制器 API 新增了获取安装日志的接口,并在 UI 详情页中集成了安装日志查看抽屉。同时,Helm 命令执行默认增加了 "--debug" 参数以输出详细日志,涉及后端接口、命令行调用和前端页面的联动调整。 Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant UI
participant API
participant DB
User->>UI: 点击“安装log”按钮
UI->>API: GET /helm/release/ns/:ns/name/:name/revision/:revision/install_log
API->>DB: 查询 Helm Release 安装日志
DB-->>API: 返回日志数据
API-->>UI: 返回 JSON(包含安装日志 result)
UI-->>User: 抽屉展示安装日志内容
sequenceDiagram
participant API
participant HelmCmd
API->>HelmCmd: 执行 Helm 命令(runAndLog)
HelmCmd->>HelmCmd: 在参数前插入 "--debug"
HelmCmd->>HelmCmd: 执行 Helm 命令并输出详细日志
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
在helm命令中添加--debug参数以输出调试日志
添加获取release安装日志的API接口和前端展示页面