Documentation
¶
Index ¶
- func RebootInstance(ctx context.Context, runner commands.RemoteCommandRunner, instanceIP string) error
- func RunLogCollector(ctx context.Context, runner commands.RemoteCommandRunner, ...) error
- func RunNodeadmDebug(ctx context.Context, runner commands.RemoteCommandRunner, instanceIP string) error
- func RunNodeadmUninstall(ctx context.Context, runner commands.RemoteCommandRunner, instanceIP string) error
- func RunNodeadmUpgrade(ctx context.Context, runner commands.RemoteCommandRunner, ...) error
- func RunNodeadmVersion(ctx context.Context, runner commands.RemoteCommandRunner, instanceIP string) (string, error)
- type CleanNode
- type NodeInfrastructureCleaner
- type UninstallVerifier
- type UpgradeNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RebootInstance ¶
func RunLogCollector ¶
func RunNodeadmDebug ¶ added in v1.0.5
func RunNodeadmUninstall ¶
func RunNodeadmUpgrade ¶
func RunNodeadmVersion ¶ added in v1.0.5
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
type NodeInfrastructureCleaner ¶ added in v1.0.5
Clean up any infra for EC2 node
type UninstallVerifier ¶
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.
Click to show internal directories.
Click to hide internal directories.