第 15 章 preflight 验证内核模块管理 (KMM) 模块
在应用 KMM 模块的集群中执行升级前,管理员必须在集群升级和可能的内核升级后验证使用 KMM 安装的内核模块是否可以在节点上安装。preflight 会尝试并行验证集群中载入的每个模块。在启动一个模块的验证前,preflight 并不会等待一个模块的验证过程完成。
15.1. 启动验证
preflight 验证通过在集群中创建 PreflightValidationOCP 资源来触发。此 spec 包含两个字段:
type PreflightValidationOCPSpec struct {
// releaseImage describes the OCP release image that all Modules need to be checked against.
// +kubebuilder:validation:Required
ReleaseImage string `json:"releaseImage"` 1
// Boolean flag that determines whether images build during preflight must also
// be pushed to a defined repository
// +optional
PushBuiltImage bool `json:"pushBuiltImage"` 2
}