cluster

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package cluster contains asset targets that generates the terraform file, prepare the infra, and bootstrap the cluster.

Index

Constants

View Source
const (
	// MetadataFilename is name of the file where clustermetadata is stored.
	MetadataFilename = "metadata.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	FileList []*asset.File
}

Cluster uses the terraform executable to launch a cluster with the given terraform tfvar and generated templates.

func (*Cluster) Dependencies

func (c *Cluster) Dependencies() []asset.Asset

Dependencies returns the direct dependency for launching the cluster.

func (*Cluster) Files added in v0.2.0

func (c *Cluster) Files() []*asset.File

Files returns the FileList generated by the asset.

func (*Cluster) Generate

func (c *Cluster) Generate(parents asset.Parents) (err error)

Generate launches the cluster and generates the terraform state file on disk.

func (*Cluster) Name

func (c *Cluster) Name() string

Name returns the human-friendly name of the asset.

type TerraformVariables

type TerraformVariables struct {
	Platform string
	File     *asset.File
}

TerraformVariables depends on InstallConfig and Ignition to generate the terrafor.tfvars.

func (*TerraformVariables) Dependencies

func (t *TerraformVariables) Dependencies() []asset.Asset

Dependencies returns the dependency of the TerraformVariable

func (*TerraformVariables) Files added in v0.2.0

func (t *TerraformVariables) Files() []*asset.File

Files returns the files generated by the asset.

func (*TerraformVariables) Generate

func (t *TerraformVariables) Generate(parents asset.Parents) error

Generate generates the terraform.tfvars file.

func (*TerraformVariables) Name

func (t *TerraformVariables) Name() string

Name returns the human-friendly name of the asset.

Jump to

Keyboard shortcuts

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