28 lines
802 B
Go
28 lines
802 B
Go
package node
|
|
|
|
import (
|
|
"context"
|
|
|
|
"k8s.io/klog/v2"
|
|
)
|
|
|
|
func CheckPrereqs(context.Context, *NodeContext) error {
|
|
klog.Info("check_prereqs: TODO implement command discovery and runtime validation")
|
|
return nil
|
|
}
|
|
|
|
func ValidateNetworkRequirements(context.Context, *NodeContext) error {
|
|
klog.Info("validate_network_requirements: TODO implement local IP and API reachability checks")
|
|
return nil
|
|
}
|
|
|
|
func CheckUpgradePrereqs(context.Context, *NodeContext) error {
|
|
klog.Info("check_upgrade_prereqs: TODO implement kubeadm version / skew checks")
|
|
return nil
|
|
}
|
|
|
|
func DecideBootstrapAction(_ context.Context, nctx *NodeContext) error {
|
|
klog.InfoS("decide_bootstrap_action", "bootstrapMode", nctx.Config.Spec.BootstrapMode, "joinKind", nctx.Config.Spec.JoinKind)
|
|
return nil
|
|
}
|