cluster

package
v0.0.0-...-03978f4 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteBMOComponents

func DeleteBMOComponents(ctx context.Context, conf *config.Metal3CtlConfig, options *DeleteOptions) error

func DeleteFromMgmtCluster

func DeleteFromMgmtCluster(input config.LoadMetal3CtlConfigInput, options *DeleteOptions) error

func InitMgmtCluster

func InitMgmtCluster(input config.LoadMetal3CtlConfigInput, options *InitOptions) error

func MoveBMOComponents

func MoveBMOComponents(ctx context.Context, conf *config.Metal3CtlConfig, options *MoveOptions) error

func MoveFromBootstrapToTargetCluster

func MoveFromBootstrapToTargetCluster(input config.LoadMetal3CtlConfigInput, options *MoveOptions) error

Types

type BMOConfig

type BMOConfig struct {
	RawYAML   []byte
	Files     map[string][]byte
	Variables map[string]interface{}
}

BMOConfig is the BMO config file that point to the repository created by InstallBMOComponents.

func InstallBMOComponents

func InstallBMOComponents(ctx context.Context, conf *config.Metal3CtlConfig) (*BMOConfig, error)

type ClusterctlConfig

type ClusterctlConfig struct {
	Path   string
	Values map[string]interface{}
}

ClusterctlConfig is the clusterctl config file that point to the repository created by CreateRepository.

func CreateCAPIRepository

func CreateCAPIRepository(ctx context.Context, input CreateCAPIRepositoryInput) (*ClusterctlConfig, error)

CreateCAPIRepository creates a local repository based on the metal3ctl config and returns a metal3ctl config file to be used for working with such repository.

func (*ClusterctlConfig) WriteFile

func (c *ClusterctlConfig) WriteFile() error

WriteFile writes a clusterctl config file to disk.

type ClusterctlConfigProvider

type ClusterctlConfigProvider struct {
	Name string `json:"name,omitempty"`
	URL  string `json:"url,omitempty"`
	Type string `json:"type,omitempty"`
}

ClusterctlConfigProvider mirrors clusterctl config.Provider interface and allows serialization of the corresponding info

type CreateCAPIRepositoryInput

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

CreateCAPIRepositoryInput is the input for CreateCAPIRepository.

type DeleteOptions

type DeleteOptions struct {
	SkipBMO          bool
	SkipCAPI         bool
	IncludeNamespace bool
	IncludeCRDs      bool
}

type InitOptions

type InitOptions struct {
	ListImages bool
	SkipBMO    bool
	SkipCAPI   bool
}

type MoveOptions

type MoveOptions struct {
	FromKubeconfig string
	Namespace      string
	ToKubeconfig   string
	SkipBMO        bool
	SkipCAPI       bool
}

Jump to

Keyboard shortcuts

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