Documentation ¶
Index ¶
- Constants
- func DeleteNode(toDeleteHost *Host, kubeClient *kubernetes.Clientset, hasAnotherRole bool) error
- func HealthcheckFactory(h *Host) (func(network, address string) (net.Conn, error), error)
- func IsHostListChanged(currentHosts, configHosts []*Host) bool
- func SSHFactory(h *Host) (func(network, address string) (net.Conn, error), error)
- type DialerFactory
- type Host
- func (h *Host) CleanUp(toCleanPaths []string, cleanerImage string) error
- func (h *Host) CleanUpAll(cleanerImage string) error
- func (h *Host) CleanUpControlHost(workerRole, cleanerImage string) error
- func (h *Host) CleanUpWorkerHost(controlRole, cleanerImage string) error
- func (h *Host) TunnelUp(dialerFactory DialerFactory) error
Constants ¶
View Source
const ( ToCleanEtcdDir = "/var/lib/etcd" ToCleanSSLDir = "/etc/kubernetes/ssl" ToCleanCNIConf = "/etc/cni" ToCleanCNIBin = "/opt/cni" ToCleanCalicoRun = "/var/run/calico" CleanerContainerName = "kube-cleaner" )
View Source
const ( DockerAPIVersion = "1.24" K8sVersion = "1.8" )
Variables ¶
This section is empty.
Functions ¶
func DeleteNode ¶
func DeleteNode(toDeleteHost *Host, kubeClient *kubernetes.Clientset, hasAnotherRole bool) error
func HealthcheckFactory ¶
func IsHostListChanged ¶
Types ¶
type DialerFactory ¶
type Host ¶
type Host struct { v3.RKEConfigNode DClient *client.Client HealthcheckPort int IsControl bool IsWorker bool IgnoreDockerVersion bool }
func GetToDeleteHosts ¶
func (*Host) CleanUpAll ¶
func (*Host) CleanUpControlHost ¶
func (*Host) CleanUpWorkerHost ¶
func (*Host) TunnelUp ¶
func (h *Host) TunnelUp(dialerFactory DialerFactory) error
Click to show internal directories.
Click to hide internal directories.