Documentation ¶
Index ¶
- type NodeTask
- type State
- func (s *State) Clone() *State
- func (s *State) KubeadmVerboseFlag() string
- func (s *State) RunTaskOnAllNodes(task NodeTask, parallel bool) error
- func (s *State) RunTaskOnFollowers(task NodeTask, parallel bool) error
- func (s *State) RunTaskOnLeader(task NodeTask) error
- func (s *State) RunTaskOnNodes(nodes []kubeoneapi.HostConfig, task NodeTask, parallel bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeTask ¶
type NodeTask func(ctx *State, node *kubeoneapi.HostConfig, conn ssh.Connection) error
NodeTask is a task that is specifically tailored to run on a single node.
type State ¶
type State struct { Cluster *kubeoneapi.KubeOneCluster Logger logrus.FieldLogger Connector *ssh.Connector Configuration *configupload.Configuration Runner *runner.Runner WorkDir string JoinCommand string JoinToken string RESTConfig *rest.Config DynamicClient dynclient.Client Verbose bool BackupFile string DestroyWorkers bool RemoveBinaries bool ForceUpgrade bool UpgradeMachineDeployments bool PatchCNI bool CredentialsFilePath string ManifestFilePath string }
State holds together currently test flags and parsed info, along with utilities like logger
func (*State) KubeadmVerboseFlag ¶
func (*State) RunTaskOnAllNodes ¶
RunTaskOnAllNodes runs the given task on all hosts.
func (*State) RunTaskOnFollowers ¶
RunTaskOnFollowers runs the given task on the follower hosts.
func (*State) RunTaskOnLeader ¶
RunTaskOnLeader runs the given task on the leader host.
func (*State) RunTaskOnNodes ¶
func (s *State) RunTaskOnNodes(nodes []kubeoneapi.HostConfig, task NodeTask, parallel bool) error
RunTaskOnNodes runs the given task on the given selection of hosts.
Click to show internal directories.
Click to hide internal directories.