#7056·sealos

BUG: 扩容时,sealos 从镜像的 OCI 配置中读取环境变量,但没有覆盖并合并我在 Clusterfile 中定义的 spec.env || BUG: 在扩展时,sealos 从镜像的 OCI 配置中读取环境变量,但没有覆盖并合并我在 Clusterfile 中定义的 spec.env。

作者: Opamper创建于 2026年7月14日更新于 2026年8月22日
标签kind/bug

Sealos Version

5.0.1

How to reproduce the bug?

Spec.env will be merged into status.mounts[].env when the cluster is initially created. When expanding a node, the logic of merging spec.env into status.mounts[].env is not executed. Only the OCIToImageMount function extracts environment variables from the OCI configuration of the image, which means that the value in status.mounts.env comes from the metadata of the image itself and cannot be customized.