nodeadm

package
v1.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RebootInstance

func RebootInstance(ctx context.Context, runner commands.RemoteCommandRunner, instanceIP string) error

func RunNodeadmDebug added in v1.0.5

func RunNodeadmDebug(ctx context.Context, runner commands.RemoteCommandRunner, instanceIP string) error

func RunNodeadmUninstall

func RunNodeadmUninstall(ctx context.Context, runner commands.RemoteCommandRunner, instanceIP string) error

func RunNodeadmUpgrade

func RunNodeadmUpgrade(ctx context.Context, runner commands.RemoteCommandRunner, instanceIP, kubernetesVersion string) error

func RunNodeadmVersion added in v1.0.5

func RunNodeadmVersion(ctx context.Context, runner commands.RemoteCommandRunner, instanceIP string) (string, error)

Types

type CleanNode

type CleanNode struct {
	K8s                   clientgo.Interface
	RemoteCommandRunner   commands.RemoteCommandRunner
	Verifier              UninstallVerifier
	InfrastructureCleaner NodeInfrastructureCleaner
	Logger                logr.Logger

	NodeName string
	NodeIP   string
}

CleanNode runs the process to unregister a node from the cluster and uninstall all the installed kubernetes dependencies.

func (CleanNode) RebootInstance added in v1.0.5

func (u CleanNode) RebootInstance(ctx context.Context) error

func (CleanNode) Run

func (u CleanNode) Run(ctx context.Context) error

type NodeInfrastructureCleaner added in v1.0.5

type NodeInfrastructureCleaner interface {
	Cleanup(ctx context.Context) error
}

Clean up any infra for EC2 node

type UninstallVerifier

type UninstallVerifier interface {
	VerifyUninstall(ctx context.Context, nodeName string) error
}

UninstallVerifier checks if nodeadm uninstall process was successful in a node.

type UpgradeNode

type UpgradeNode struct {
	K8s                 clientgo.Interface
	RemoteCommandRunner commands.RemoteCommandRunner
	Logger              logr.Logger

	NodeIP           string
	NodeName         string
	TargetK8sVersion string
}

UpgradeNode runs the process to upgrade the k8s version in a node in the cluster. This assumes the current node's version meets the version skew policy and it can actually be upgraded to the target version.

func (UpgradeNode) Run

func (u UpgradeNode) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL