package phases

import "k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/reset"

Index

Functions

func CleanDir

func CleanDir(filePath string) error

CleanDir removes everything in a directory, but not the directory itself

func IsDirEmpty

func IsDirEmpty(dir string) (bool, error)

IsDirEmpty returns true if a directory is empty

func NewCleanupNodePhase

func NewCleanupNodePhase() workflow.Phase

NewCleanupNodePhase creates a kubeadm workflow phase that cleanup the node

func NewPreflightPhase

func NewPreflightPhase() workflow.Phase

NewPreflightPhase creates a kubeadm workflow phase implements preflight checks for reset

func NewRemoveETCDMemberPhase

func NewRemoveETCDMemberPhase() workflow.Phase

NewRemoveETCDMemberPhase creates a kubeadm workflow phase for remove-etcd-member

Source Files

cleanupnode.go data.go preflight.go removeetcdmember.go unmount_linux.go

Version
v1.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
27 packages
Last checked
3 hours ago

Tools for package owners.