executors

package
v0.0.0-...-b8e83fa Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Clusterctl       = "clusterctl"
	KubernetesApply  = "kubernetes-apply"
	GenericContainer = "generic-container"
	Ephemeral        = "ephemeral"
	BMHManager       = "BaremetalManager"
)

Constants related to phase executor names

Variables

This section is empty.

Functions

func NewBaremetalExecutor

func NewBaremetalExecutor(cfg ifc.ExecutorConfig) (ifc.Executor, error)

NewBaremetalExecutor constructor for baremetal executor

func NewClusterctlExecutor

func NewClusterctlExecutor(cfg ifc.ExecutorConfig) (ifc.Executor, error)

NewClusterctlExecutor creates instance of 'clusterctl' phase executor

func NewContainerExecutor

func NewContainerExecutor(cfg ifc.ExecutorConfig) (ifc.Executor, error)

NewContainerExecutor creates instance of phase executor

func NewEphemeralExecutor

func NewEphemeralExecutor(cfg ifc.ExecutorConfig) (ifc.Executor, error)

NewEphemeralExecutor creates instance of phase executor

func NewKubeApplierExecutor

func NewKubeApplierExecutor(cfg ifc.ExecutorConfig) (ifc.Executor, error)

NewKubeApplierExecutor returns instance of executor

func RegisterExecutor

func RegisterExecutor(executorName string, registry map[schema.GroupVersionKind]ifc.ExecutorFactory) error

RegisterExecutor adds executor to phase executor registry

Types

type BaremetalManagerExecutor

type BaremetalManagerExecutor struct {
	// contains filtered or unexported fields
}

BaremetalManagerExecutor is abstraction built on top of baremetal commands of airshipctl

func (*BaremetalManagerExecutor) Render

Render baremetal hosts

func (*BaremetalManagerExecutor) Run

Run runs baremetal operations as executor

func (*BaremetalManagerExecutor) Status

Status returns the status of the given phase

func (*BaremetalManagerExecutor) Validate

func (e *BaremetalManagerExecutor) Validate() error

Validate executor configuration and documents

type ClusterctlExecutor

type ClusterctlExecutor struct {
	// contains filtered or unexported fields
}

ClusterctlExecutor phase executor

func (*ClusterctlExecutor) Render

Render executor documents

func (*ClusterctlExecutor) Run

func (c *ClusterctlExecutor) Run(opts ifc.RunOptions) error

Run clusterctl init as a phase runner

func (*ClusterctlExecutor) Status

func (c *ClusterctlExecutor) Status() (ifc.ExecutorStatus, error)

Status returns the status of the given phase

func (*ClusterctlExecutor) Validate

func (c *ClusterctlExecutor) Validate() error

Validate executor configuration and documents

type ContainerExecutor

type ContainerExecutor struct {
	ResultsDir    string
	MountBasePath string

	Container        *v1alpha1.GenericContainer
	ClientFunc       container.ClientV1Alpha1FactoryFunc
	ExecutorBundle   document.Bundle
	ExecutorDocument document.Document
	Options          ifc.ExecutorConfig
}

ContainerExecutor contains resources for generic container executor

func (*ContainerExecutor) Render

Render executor documents

func (*ContainerExecutor) Run

func (c *ContainerExecutor) Run(opts ifc.RunOptions) error

Run generic container as a phase runner

func (*ContainerExecutor) SetKubeConfig

func (c *ContainerExecutor) SetKubeConfig() (kubeconfig.Cleanup, error)

SetKubeConfig adds env variable and mounts kubeconfig to container

func (*ContainerExecutor) Status

func (c *ContainerExecutor) Status() (ifc.ExecutorStatus, error)

Status returns the status of the given phase

func (*ContainerExecutor) Validate

func (c *ContainerExecutor) Validate() error

Validate executor configuration and documents

type EphemeralExecutor

type EphemeralExecutor struct {
	ExecutorBundle   document.Bundle
	ExecutorDocument document.Document

	BootConf  *v1alpha1.BootConfiguration
	Container container.Container
}

EphemeralExecutor contains resources for ephemeral executor

func (*EphemeralExecutor) Render

Render executor documents

func (*EphemeralExecutor) Run

func (c *EphemeralExecutor) Run(opts ifc.RunOptions) error

Run ephemeral as a phase runner

func (*EphemeralExecutor) Status

func (c *EphemeralExecutor) Status() (ifc.ExecutorStatus, error)

Status returns the status of the given phase

func (*EphemeralExecutor) Validate

func (c *EphemeralExecutor) Validate() error

Validate executor configuration and documents

type KubeApplierExecutor

type KubeApplierExecutor struct {
	ExecutorBundle   document.Bundle
	ExecutorDocument document.Document
	BundleName       string
	// contains filtered or unexported fields
}

KubeApplierExecutor applies resources to kubernetes

func (*KubeApplierExecutor) Render

Render document set

func (*KubeApplierExecutor) Run

func (e *KubeApplierExecutor) Run(runOpts ifc.RunOptions) error

Run executor, should be performed in separate go routine

func (*KubeApplierExecutor) Status

Status returns the status of the given phase

func (*KubeApplierExecutor) Validate

func (e *KubeApplierExecutor) Validate() error

Validate document set

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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