Configures uboot commands
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user