Writes bootcmd

This commit is contained in:
2026-04-04 22:47:51 +08:00
parent b8a5f197f4
commit abc749a4b0
10 changed files with 316 additions and 18 deletions

View File

@@ -4,6 +4,7 @@ import (
"fmt"
"example.com/monok8s/pkg/node"
"example.com/monok8s/pkg/node/uboot"
)
type Registry struct {
@@ -30,7 +31,8 @@ func NewRegistry(ctx *node.NodeContext) *Registry {
"ConfigureDefaultCNI": node.ConfigureDefaultCNI,
"ConfigureHostname": node.ConfigureHostname(netCfg),
"ConfigureMgmtInterface": node.ConfigureMgmtInterface(netCfg),
"ConfigureUBootCommands": node.ConfigureUBootCommands,
"ConfigureABBoot": uboot.ConfigureABBoot,
"ConfigureUBootCommands": uboot.ConfigureUBootCommands,
"DetectLocalClusterState": node.DetectLocalClusterState,
"EnsureIPForward": node.EnsureIPForward,
"ReconcileControlPlane": node.ReconcileControlPlane,

View File

@@ -137,6 +137,11 @@ func NewRunner(cfg *monov1alpha1.MonoKSConfig) *Runner {
Name: "Ensure fw_env config and u-boot-tools availablilty",
Desc: "Install or generate /etc/fw_env.config for U-Boot environment access",
},
{
RegKey: "ConfigureABBoot",
Name: "Configure A/B booting environment",
Desc: "Make A/B booting possible",
},
{
RegKey: "ApplyControlAgentDaemonSetResources",
Name: "Apply daemonset for control agent",