37 lines
1.2 KiB
Go
37 lines
1.2 KiB
Go
package node
|
|
|
|
import (
|
|
"context"
|
|
|
|
"k8s.io/klog/v2"
|
|
)
|
|
|
|
func WaitForExistingClusterIfNeeded(context.Context, *NodeContext) error {
|
|
klog.Info("wait_for_existing_cluster_if_needed: TODO implement kubelet/admin.conf waits")
|
|
return nil
|
|
}
|
|
func CheckRequiredImages(context.Context, *NodeContext) error {
|
|
klog.Info("check_required_images: TODO implement kubeadm image list + crictl image presence")
|
|
return nil
|
|
}
|
|
func GenerateKubeadmConfig(context.Context, *NodeContext) error {
|
|
klog.Info("generate_kubeadm_config: TODO render kubeadm v1beta4 config from MonoKSConfig")
|
|
return nil
|
|
}
|
|
func RunKubeadmInit(context.Context, *NodeContext) error {
|
|
klog.Info("run_kubeadm_init: TODO implement kubeadm init --config <file>")
|
|
return nil
|
|
}
|
|
func RunKubeadmUpgradeApply(context.Context, *NodeContext) error {
|
|
klog.Info("run_kubeadm_upgrade_apply: TODO implement kubeadm upgrade apply")
|
|
return nil
|
|
}
|
|
func RunKubeadmJoin(context.Context, *NodeContext) error {
|
|
klog.Info("run_kubeadm_join: TODO implement kubeadm join")
|
|
return nil
|
|
}
|
|
func RunKubeadmUpgradeNode(context.Context, *NodeContext) error {
|
|
klog.Info("run_kubeadm_upgrade_node: TODO implement kubeadm upgrade node")
|
|
return nil
|
|
}
|