Skip to content

feat: mount pod patch with nodeSelector#1512

Merged
zxh326 merged 13 commits intojuicedata:masterfrom
Awadabang:feat/node-selector-patch
Mar 30, 2026
Merged

feat: mount pod patch with nodeSelector#1512
zxh326 merged 13 commits intojuicedata:masterfrom
Awadabang:feat/node-selector-patch

Conversation

@Awadabang
Copy link
Copy Markdown
Contributor

@Awadabang Awadabang commented Feb 9, 2026

不同资源的node,对mount pod的资源、缓存设置等等可能会有特殊的要求

增加了NodeSelector字段来针对节点特制mount pod option

@Awadabang Awadabang marked this pull request as ready for review February 9, 2026 09:57
@zwwhdls zwwhdls requested a review from zxh326 February 27, 2026 03:00
@Awadabang
Copy link
Copy Markdown
Contributor Author

@zxh326 hi,有时间审核一下PR吗?

@zxh326
Copy link
Copy Markdown
Member

zxh326 commented Mar 11, 2026

现在这个感觉没有考虑到 如何处理平滑升级?比如我们在 dashboard 中也会尝试算出 mountpod 配置,来计算配置是否更新,但 dashboard 不是固定在某一个 node 上的

@Awadabang Awadabang force-pushed the feat/node-selector-patch branch from 57fa2f9 to 215a1f5 Compare March 11, 2026 08:17
@Awadabang
Copy link
Copy Markdown
Contributor Author

现在这个感觉没有考虑到 如何处理平滑升级?比如我们在 dashboard 中也会尝试算出 mountpod 配置,来计算配置是否更新,但 dashboard 不是固定在某一个 node 上的

已更新

This comment was marked as resolved.

@Awadabang Awadabang requested a review from CaitinChen as a code owner March 18, 2026 06:36
@CaitinChen
Copy link
Copy Markdown
Collaborator

@zxh326 PTAL

@Awadabang Awadabang force-pushed the feat/node-selector-patch branch from 5b04c43 to 273d656 Compare March 20, 2026 01:25
@Awadabang Awadabang force-pushed the feat/node-selector-patch branch from 273d656 to 31b08ff Compare March 24, 2026 05:50
Copy link
Copy Markdown
Member

@zxh326 zxh326 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我感觉现在有点复杂。

当前实现把 node labels 放到了 config 包级全局状态里,再让 patch 匹配回退依赖这份隐式上下文。这样一来,匹配结果不再只由当前传入的参数决定,还会取决于运行时这份全局状态是否已经初始化、是否和实际 node 保持一致。

我觉得更稳妥的做法是把 node 作为显式上下文传进 patch / diff 的计算路径,并在 controller、dashboard、CSI node 这些需要重算 setting 的地方统一调用。这样匹配逻辑只依赖明确输入,行为也能保持一致。

@zxh326
Copy link
Copy Markdown
Member

zxh326 commented Mar 27, 2026

我来接手这个 PR ,做一些修改

Thanks @Awadabang

@Awadabang
Copy link
Copy Markdown
Contributor Author

我来接手这个 PR ,做一些修改

Thanks @Awadabang

好的,多谢

zxh326 added 3 commits March 27, 2026 15:18
Signed-off-by: Xuhui zhang <xuhui@juicedata.io>
Signed-off-by: Xuhui zhang <xuhui@juicedata.io>
Signed-off-by: Xuhui zhang <xuhui@juicedata.io>
Signed-off-by: Xuhui zhang <xuhui@juicedata.io>
Copy link
Copy Markdown
Member

@zxh326 zxh326 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/cc @zwwhdls

@zxh326 zxh326 requested a review from zwwhdls March 30, 2026 02:27
@zxh326 zxh326 merged commit 2eec42f into juicedata:master Mar 30, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants