manager

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DefaultCon = 10
	Timeout    = 120
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	Cluster        *kubekeyapi.ClusterSpec
	Logger         log.FieldLogger
	Connector      *ssh.Dialer
	Runner         *runner.Runner
	AllNodes       []kubekeyapi.HostCfg
	EtcdNodes      []kubekeyapi.HostCfg
	MasterNodes    []kubekeyapi.HostCfg
	WorkerNodes    []kubekeyapi.HostCfg
	K8sNodes       []kubekeyapi.HostCfg
	ClientNode     []kubekeyapi.HostCfg
	ClusterHosts   []string
	WorkDir        string
	KsEnable       bool
	KsVersion      string
	Debug          bool
	SkipCheck      bool
	SkipPullImages bool
}

func (*Manager) Copy

func (mgr *Manager) Copy() *Manager

func (*Manager) RunTaskOnAllNodes

func (mgr *Manager) RunTaskOnAllNodes(task NodeTask, parallel bool) error

func (*Manager) RunTaskOnEtcdNodes

func (mgr *Manager) RunTaskOnEtcdNodes(task NodeTask, parallel bool) error

func (*Manager) RunTaskOnK8sNodes

func (mgr *Manager) RunTaskOnK8sNodes(task NodeTask, parallel bool) error

func (*Manager) RunTaskOnMasterNodes

func (mgr *Manager) RunTaskOnMasterNodes(task NodeTask, parallel bool) error

func (*Manager) RunTaskOnNodes

func (mgr *Manager) RunTaskOnNodes(nodes []kubekeyapi.HostCfg, task NodeTask, parallel bool) error

func (*Manager) RunTaskOnWorkerNodes

func (mgr *Manager) RunTaskOnWorkerNodes(task NodeTask, parallel bool) error

type NodeTask

type NodeTask func(mgr *Manager, node *kubekeyapi.HostCfg) error

type Task

type Task struct {
	Task   func(*Manager) error
	ErrMsg string
}

func (*Task) Run

func (t *Task) Run(mgr *Manager) error

Jump to

Keyboard shortcuts

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