hosts

package
v0.0.8-dev Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2017 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DockerAPIVersion = "1.24"
	K8sVersion       = "1.8"
)
View Source
const (
	ToCleanEtcdDir       = "/var/lib/etcd"
	ToCleanSSLDir        = "/etc/kubernetes/ssl"
	ToCleanCNIConf       = "/etc/cni"
	ToCleanCNIBin        = "/opt/cni"
	ToCleanCalicoRun     = "/var/run/calico"
	CleanerContainerName = "kube-cleaner"
)

Variables

This section is empty.

Functions

func DeleteNode

func DeleteNode(toDeleteHost *Host, kubeClient *kubernetes.Clientset, hasAnotherRole bool) error

func IsHostListChanged

func IsHostListChanged(currentHosts, configHosts []*Host) bool

Types

type Host

type Host struct {
	v3.RKEConfigNode
	DClient   *client.Client
	IsControl bool
	IsWorker  bool
}

func GetToDeleteHosts

func GetToDeleteHosts(currentHosts, configHosts []*Host) []*Host

func (*Host) CleanUp

func (h *Host) CleanUp(toCleanPaths []string, cleanerImage string) error

func (*Host) CleanUpAll

func (h *Host) CleanUpAll(cleanerImage string) error

func (*Host) CleanUpControlHost

func (h *Host) CleanUpControlHost(workerRole, cleanerImage string) error

func (*Host) CleanUpWorkerHost

func (h *Host) CleanUpWorkerHost(controlRole, cleanerImage string) error

func (*Host) TunnelUp

func (h *Host) TunnelUp() error

Jump to

Keyboard shortcuts

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