Configures uboot commands

This commit is contained in:
2026-03-31 18:15:24 +08:00
parent f67c338e60
commit d8275622e6
5 changed files with 283 additions and 4 deletions

View File

@@ -3,9 +3,16 @@ package node
import (
"context"
"k8s.io/klog/v2"
system "undecided.project/monok8s/pkg/system"
)
// Cluster is fine without uboot commands, just no OSUpgrade agent
func StartControlAgent(ctx context.Context, n *NodeContext) error {
return system.EnsureServiceRunning(ctx, n.SystemRunner, "control-agent")
err := ConfigureUBootCommands(ctx, n)
if err == nil {
return system.EnsureServiceRunning(ctx, n.SystemRunner, "control-agent")
}
klog.Warningf("not starting agent due to uboot: %v", err)
return nil
}