-
Notifications
You must be signed in to change notification settings - Fork 0
修复api无法清空已有健康检查设置 #19
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
Walkthrough## Walkthrough
此次修改在 `resourceTencentCloudClbListener` 函数中引入了一个新的 `CustomizeDiff` 函数,旨在增强对健康检查参数的处理逻辑。该函数检查一组健康检查键的值,如果发现任一键为 `nil`,将强制创建新资源。这一改进确保在关键健康检查参数被修改时,基础设施能够正确更新,避免潜在的配置错误。同时,GitHub Actions 的工作流文件锁定了 GoReleaser 的版本,以提高发布过程的稳定性和可预测性。
## Changes
| 文件 | 变更摘要 |
|--------------------------------------|-------------------------------------------------|
| tencentcloud/resource_tc_clb_listener.go, .github/workflows/shinny_release.yml | 添加了 `CustomizeDiff` 函数以增强健康检查参数的处理逻辑,同时将 GoReleaser 的版本从 `latest` 更新为 `1.26.2` 提升发布稳定性。 |
## Poem
> 🐰 在云端跳跃,健康检查新变革,
> 参数变更,资源重新构建。
> 代码如歌,逻辑如舞,
> 配置安全,兔子心欢愉!
> 🌟 让我们庆祝,今日之美好! TipsChatThere are 3 ways to chat with CodeRabbit:
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 as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- tencentcloud/resource_tc_clb_listener.go (1 hunks)
Additional context used
GitHub Check: golangci-lint
tencentcloud/resource_tc_clb_listener.go
[failure] 389-389:
Error return value ofd.ForceNew
is not checked (errcheck)
2febfcc
to
0efd403
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- tencentcloud/resource_tc_clb_listener.go (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- tencentcloud/resource_tc_clb_listener.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- .github/workflows/shinny_release.yml (1 hunks)
Additional comments not posted (1)
.github/workflows/shinny_release.yml (1)
43-43
: 锁定 GoReleaser 版本为 1.26.2将 GoReleaser 版本从
latest
更新为1.26.2
提高了稳定性和可预测性,避免了因使用最新版本可能引入的意外行为。请确保此版本与工作流的其他部分兼容。
a7bf2cb
to
5e86adc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- .github/workflows/shinny_release.yml (1 hunks)
- tencentcloud/resource_tc_clb_listener.go (1 hunks)
Files skipped from review as they are similar to previous changes (2)
- .github/workflows/shinny_release.yml
- tencentcloud/resource_tc_clb_listener.go
5e86adc
to
4391e77
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- .github/workflows/shinny_release.yml (1 hunks)
- tencentcloud/resource_tc_clb_listener.go (1 hunks)
Files skipped from review as they are similar to previous changes (2)
- .github/workflows/shinny_release.yml
- tencentcloud/resource_tc_clb_listener.go
4391e77
to
66802a5
Compare
66802a5
to
c4298b4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- .github/workflows/shinny_release.yml (1 hunks)
- tencentcloud/resource_tc_clb_listener.go (1 hunks)
Files skipped from review as they are similar to previous changes (2)
- .github/workflows/shinny_release.yml
- tencentcloud/resource_tc_clb_listener.go
c4298b4
to
fdc94a0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- .github/workflows/shinny_release.yml (1 hunks)
- tencentcloud/resource_tc_clb_listener.go (1 hunks)
Files skipped from review as they are similar to previous changes (2)
- .github/workflows/shinny_release.yml
- tencentcloud/resource_tc_clb_listener.go
fdc94a0
to
286b9cd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- .github/workflows/shinny_release.yml (1 hunks)
- tencentcloud/resource_tc_clb_listener.go (1 hunks)
Files skipped from review due to trivial changes (1)
- .github/workflows/shinny_release.yml
Files skipped from review as they are similar to previous changes (1)
- tencentcloud/resource_tc_clb_listener.go
背景
腾讯云的clb监听器api无法消除已经配置的健康检查,经过客服确认只能通过重建进行消除
方案
使用CustomizeDiff判断健康检查相关项变为空后触发ForceNew
Summary by CodeRabbit