Some basic agent startup
This commit is contained in:
@@ -38,6 +38,7 @@ func NewRegistry(ctx *node.NodeContext) *Registry {
|
||||
"RunKubeadmUpgradeApply": node.RunKubeadmUpgradeApply,
|
||||
"RunKubeadmUpgradeNode": node.RunKubeadmUpgradeNode,
|
||||
"StartCRIO": node.StartCRIO,
|
||||
"StartControlAgent": node.StartControlAgent,
|
||||
"ValidateNodeIPAndAPIServerReachability": node.ValidateNodeIPAndAPIServerReachability,
|
||||
"ValidateRequiredImagesPresent": node.ValidateRequiredImagesPresent,
|
||||
"WaitForExistingClusterIfNeeded": node.WaitForExistingClusterIfNeeded,
|
||||
@@ -45,14 +46,6 @@ func NewRegistry(ctx *node.NodeContext) *Registry {
|
||||
}
|
||||
}
|
||||
|
||||
func (r *Registry) MustGet(name string) node.Step {
|
||||
step, ok := r.steps[name]
|
||||
if !ok {
|
||||
panic(fmt.Sprintf("unknown step %q", name))
|
||||
}
|
||||
return step
|
||||
}
|
||||
|
||||
func (r *Registry) Get(name string) (node.Step, error) {
|
||||
step, ok := r.steps[name]
|
||||
if !ok {
|
||||
|
||||
Reference in New Issue
Block a user