Skip to content

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 13, 2025

Bumps sigs.k8s.io/controller-runtime from 0.22.2 to 0.22.3.

Release notes

Sourced from sigs.k8s.io/controller-runtime's releases.

v0.22.3

What's Changed

Full Changelog: kubernetes-sigs/controller-runtime@v0.22.2...v0.22.3

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.22.2 to 0.22.3.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](kubernetes-sigs/controller-runtime@v0.22.2...v0.22.3)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-version: 0.22.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Oct 13, 2025
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link

lingma-agents bot commented Oct 13, 2025

升级 controller-runtime 依赖至 v0.22.3

变更概述
  • 依赖更新

    • sigs.k8s.io/controller-runtimev0.22.2 升级到 v0.22.3
    • 此版本修复了在正常资源创建后允许使用 SSA(Server-Side Apply)的问题
    • 更新了 go.modgo.sumvendor/modules.txt 中的相关依赖记录
    • 同步更新了 vendor 目录中 controller-runtime 的相关源码文件,包括结构调整和缓存键的增强实现
  • 重构

    • vendor/sigs.k8s.io/controller-runtime/pkg/client/client.go 中调整了 resourceByType 的初始化位置
    • vendor/sigs.k8s.io/controller-runtime/pkg/client/client_rest_resources.go 中增强了 clientRestResources 结构体,新增了 resourceByType 字段和 sync.RWMutex 锁以提高并发安全性
    • 引入了新的 cacheKey 结构体用于更精确地缓存资源元数据
变更文件
文件路径 变更说明
go.mod 更新 sigs.k8s.io/controller-runtime 版本号为 v0.22.3。
go.sum 添加 sigs.k8s.io/controller-runtime v0.22.3 的校验和信息。
vendor/modules.txt 在 vendor 模块列表中更新 controller-runtime 的版本为 v0.22.3。
vendor/​sigs.​k8s.​io/​controller-runtime/​pkg/​client/​client.​go 调整 resourceByType 初始化位置,保持结构体字段顺序一致。
vendor/​sigs.​k8s.​io/​controller-runtime/​pkg/​client/​client_​rest_​resources.​go 新增 resourceByType 缓存字段和读写锁支持,并引入 cacheKey 结构体优化缓存键逻辑。
时序图
sequenceDiagram
    participant CR as clientRestResources
    participant CK as cacheKey
    CR->>CR: RLock()
    CR->>CK: 构造 cacheKey{gvk, forceDisableProtoBuf}
    CR->>CR: 查询 resourceByType[cacheKey]
    CR->>CR: RUnlock()
    alt 未命中缓存
        CR->>CR: 创建 resourceMeta
        CR->>CR: Lock()
        CR->>CR: 写入 resourceByType[cacheKey]
        CR->>CR: Unlock()
    end
Loading

💡 小贴士

与 lingma-agents 交流的方式

📜 直接回复评论
直接回复本条评论,lingma-agents 将自动处理您的请求。例如:

  • 在当前代码中添加详细的注释说明。

  • 请详细介绍一下你说的 LRU 改造方案,并使用伪代码加以说明。

📜 在代码行处标记
在文件的特定位置创建评论并 @lingma-agents。例如:

  • @lingma-agents 分析这个方法的性能瓶颈并提供优化建议。

  • @lingma-agents 对这个方法生成优化代码。

📜 在讨论中提问
在任何讨论中 @lingma-agents 来获取帮助。例如:

  • @lingma-agents 请总结上述讨论并提出解决方案。

  • @lingma-agents 请根据讨论内容生成优化代码。

@dongjiang1989 dongjiang1989 merged commit 9d98e02 into main Oct 15, 2025
4 of 5 checks passed
@dependabot dependabot bot deleted the dependabot/go_modules/sigs.k8s.io/controller-runtime-0.22.3 branch October 15, 2025 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update Go code size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants