gpu-operator: variant list is hardcoded in the iaas bundle and gpu overrides are ignored silently under container

未关闭
#5,272 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
50/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
helm, kubernetes

调研方向

Read packages/core/platform/templates/bundles/iaas.yaml and packages/core/platform/sources/gpu-operator.yaml to compare the accepted variant sets, then inspect packages/core/platform/templates/NOTES.txt and the GPU transition documentation request. Add coverage for variant consistency, a NOTES warning for ignored gpu.* values under container, and migration guidance; done means all three review concerns are addressed without making the warning fatal.

由索引模型根据 Issue 内容生成。

描述

triage/needs-triage

Problem / motivation

Three review threads from #4101 are still open. The accepted GPU operator variant set is hardcoded in the iaas bundle, gpu.* overrides are dropped silently when the variant is container, and the move to container is not documented.

The variant list is written out in packages/core/platform/templates/bundles/iaas.yaml:77-78 (default, vgpu, container). The comment at lines 65-70 only asks whoever adds a variant to packages/core/platform/sources/gpu-operator.yaml to update this list as well. Nothing checks that the two stay equal, so a new variant in the PackageSource would be rejected by the bundle guard. Review thread: https://github.com/cozystack/cozystack/pull/4101#discussion_r3950900243

Under container the whole gpu wiring block is skipped (iaas.yaml:80). A user who sets gpu.permittedHostDevices or gpu.mediatedDevicesConfiguration together with gpuOperatorVariant: container gets no error and no hint that the values are ignored. packages/core/platform/templates/NOTES.txt has no GPU message at all. The reviewer asked for a NOTES warning, explicitly not a fail. Review thread: https://github.com/cozystack/cozystack/pull/4101#discussion_r3950900248

The third thread, https://github.com/cozystack/cozystack/pull/4101#discussion_r3950900254, asks for docs on the move from default or vgpu to container. The move removes the HostDevices feature gate and permittedHostDevices, which affects admission of existing GPU VMs. cozystack/website#685 does not cover this, it only fixes the page wording for the container end state.

Proposed solution

Derive the variant set from the PackageSource, or add a test that compares it with the bundle list. Add a NOTES warning when gpu.* is set under container. Document the transition.

Scope check

  • This affects a single component / package
  • I can describe the expected behavior concretely

Additional context

All line numbers are at c117420f5e1363dcd88d35372ff2eac52e5d93f2.

主要语言
Go
星标
2.2k
派生
209
平均合并
4 天 14 小时
30 天内合并 PR
140

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

cozystack/cozystack 的其他 Issue

查看 cozystack/cozystack 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。