Documentation ¶
Index ¶
- Constants
- func DeleteNode(ctx context.Context, toDeleteHost *Host, kubeClient *kubernetes.Clientset, ...) error
- func IsHostListChanged(currentHosts, configHosts []*Host) bool
- func LocalConnFactory(h *Host) (func(network, address string) (net.Conn, error), error)
- func LocalHealthcheckFactory(h *Host) (func(network, address string) (net.Conn, error), error)
- func RemoveTaintFromHost(ctx context.Context, host *Host, taintKey string, ...) error
- func SSHFactory(h *Host) (func(network, address string) (net.Conn, error), error)
- type DialerFactory
- type Host
- func (h *Host) CleanUp(ctx context.Context, toCleanPaths []string, cleanerImage string, ...) error
- func (h *Host) CleanUpAll(ctx context.Context, cleanerImage string, prsMap map[string]v3.PrivateRegistry, ...) error
- func (h *Host) CleanUpControlHost(ctx context.Context, cleanerImage string, prsMap map[string]v3.PrivateRegistry) error
- func (h *Host) CleanUpEtcdHost(ctx context.Context, cleanerImage string, prsMap map[string]v3.PrivateRegistry) error
- func (h *Host) CleanUpWorkerHost(ctx context.Context, cleanerImage string, prsMap map[string]v3.PrivateRegistry) error
- func (h *Host) TunnelUp(ctx context.Context, dialerFactory DialerFactory) error
- func (h *Host) TunnelUpLocal(ctx context.Context) error
Constants ¶
View Source
const ( ToCleanEtcdDir = "/var/lib/etcd" ToCleanSSLDir = "/etc/kubernetes" ToCleanCNIConf = "/etc/cni" ToCleanCNIBin = "/opt/cni" ToCleanCNILib = "/var/lib/cni" ToCleanCalicoRun = "/var/run/calico" ToCleanTempCertPath = "/etc/kubernetes/.tmp/" CleanerContainerName = "kube-cleaner" )
View Source
const ( DockerAPIVersion = "1.24" K8sVersion = "1.8" )
View Source
const (
DockerDialerTimeout = 30
)
Variables ¶
This section is empty.
Functions ¶
func DeleteNode ¶
func IsHostListChanged ¶
func LocalConnFactory ¶
func LocalHealthcheckFactory ¶
func RemoveTaintFromHost ¶
Types ¶
type DialerFactory ¶
type Host ¶
type Host struct { v3.RKEConfigNode DClient *client.Client LocalConnPort int IsControl bool IsWorker bool IsEtcd bool IgnoreDockerVersion bool ToAddEtcdMember bool ExistingEtcdCluster bool SavedKeyPhrase string ToAddLabels map[string]string ToDelLabels map[string]string ToAddTaints []string ToDelTaints []string DockerInfo types.Info UpdateWorker bool }
func GetToAddHosts ¶
func GetToDeleteHosts ¶
func GetUniqueHostList ¶ added in v0.1.2
func NodesToHosts ¶ added in v0.1.2
func NodesToHosts(rkeNodes []v3.RKEConfigNode, nodeRole string) []*Host
func (*Host) CleanUpAll ¶
func (*Host) CleanUpControlHost ¶
func (*Host) CleanUpEtcdHost ¶
func (*Host) CleanUpWorkerHost ¶
Click to show internal directories.
Click to hide internal directories.