Initial upgrade flow for control-plane
This commit is contained in:
@@ -27,21 +27,25 @@ func NewRegistry(ctx *node.NodeContext) *Registry {
|
||||
"ApplyLocalNodeMetadataIfPossible": node.ApplyLocalNodeMetadataIfPossible,
|
||||
"CheckForVersionSkew": node.CheckForVersionSkew,
|
||||
"ClassifyBootstrapAction": node.ClassifyBootstrapAction,
|
||||
"ConfigureABBoot": uboot.ConfigureABBoot,
|
||||
"ConfigureDNS": node.ConfigureDNS(netCfg),
|
||||
"ConfigureDefaultCNI": node.ConfigureDefaultCNI,
|
||||
"ConfigureHostname": node.ConfigureHostname(netCfg),
|
||||
"ConfigureMgmtInterface": node.ConfigureMgmtInterface(netCfg),
|
||||
"ConfigureABBoot": uboot.ConfigureABBoot,
|
||||
"ConfigureUBootCommands": uboot.ConfigureUBootCommands,
|
||||
"DetectLocalClusterState": node.DetectLocalClusterState,
|
||||
"EngageControlGate": node.EngageControlGate,
|
||||
"EnsureIPForward": node.EnsureIPForward,
|
||||
"MountAltImageStore": node.MountAltImageStore,
|
||||
"ReconcileControlPlane": node.ReconcileControlPlane,
|
||||
"ReconcileWorker": node.ReconcileWorker,
|
||||
"ReleaseControlGate": node.ReleaseControlGate,
|
||||
"RunKubeadmInit": node.RunKubeadmInit,
|
||||
"RunKubeadmJoin": node.RunKubeadmJoin,
|
||||
"RunKubeadmUpgradeApply": node.RunKubeadmUpgradeApply,
|
||||
"RunKubeadmUpgradeNode": node.RunKubeadmUpgradeNode,
|
||||
"StartCRIO": node.StartCRIO,
|
||||
"UnmountAltImageStore": node.UnmountAltImageStore,
|
||||
"ValidateNodeIPAndAPIServerReachability": node.ValidateNodeIPAndAPIServerReachability,
|
||||
"ValidateRequiredImagesPresent": node.ValidateRequiredImagesPresent,
|
||||
"WaitForExistingClusterIfNeeded": node.WaitForExistingClusterIfNeeded,
|
||||
|
||||
@@ -62,6 +62,16 @@ func NewRunner(cfg *monov1alpha1.MonoKSConfig) *Runner {
|
||||
Name: "Configure default CNI",
|
||||
Desc: "Install or configure default container networking (CNI bridge, IPAM, etc.)",
|
||||
},
|
||||
{
|
||||
RegKey: "MountAltImageStore",
|
||||
Name: "Mount alt image store for CRI-O. Needed for upgrade.",
|
||||
Desc: "Will be unmount after kubeadm upgrade apply",
|
||||
},
|
||||
{
|
||||
RegKey: "EngageControlGate",
|
||||
Name: "Engage the control gate",
|
||||
Desc: "Prevents agent polling resources prematurely",
|
||||
},
|
||||
{
|
||||
RegKey: "StartCRIO",
|
||||
Name: "Start CRI-O runtime",
|
||||
@@ -127,6 +137,11 @@ func NewRunner(cfg *monov1alpha1.MonoKSConfig) *Runner {
|
||||
Name: "Run kubeadm upgrade node",
|
||||
Desc: "Upgrade node components (kubelet, config) to match control plane",
|
||||
},
|
||||
{
|
||||
RegKey: "UnmountAltImageStore",
|
||||
Name: "Unmount alt image store",
|
||||
Desc: "Rewrite CRIO storage.conf. Then restart CRIO. Then unmount.",
|
||||
},
|
||||
{
|
||||
RegKey: "ApplyLocalNodeMetadataIfPossible",
|
||||
Name: "Apply node metadata",
|
||||
@@ -147,6 +162,11 @@ func NewRunner(cfg *monov1alpha1.MonoKSConfig) *Runner {
|
||||
Name: "Apply daemonset for control agent",
|
||||
Desc: "Control agent handles OSUpgrade resources",
|
||||
},
|
||||
{
|
||||
RegKey: "ReleaseControlGate",
|
||||
Name: "Release the control gate",
|
||||
Desc: "Allow agent to start polling resources",
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user