cluster

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

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

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) Generate

func (c *Cluster) Generate(parents map[asset.Asset]*asset.State) (*asset.State, 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 Stock

type Stock interface {
	// TFVars is the asset that generates the terraform.tfvar file
	TFVars() asset.Asset
	// Cluster is the asset that creates the cluster.
	Cluster() asset.Asset
}

Stock is the stock of the cluster assets that can be generated.

type StockImpl

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

StockImpl is the implementation of the cluster asset stock.

func (*StockImpl) Cluster

func (s *StockImpl) Cluster() asset.Asset

Cluster returns the cluster asset.

func (*StockImpl) EstablishStock

func (s *StockImpl) EstablishStock(installConfigStock installconfig.Stock, bootstrapStock bootstrap.Stock, machineStock machine.Stock, kubeconfigStock kubeconfig.Stock)

EstablishStock establishes the stock of assets in the specified directory.

func (*StockImpl) TFVars

func (s *StockImpl) TFVars() asset.Asset

TFVars returns the terraform tfvar asset.

type TerraformVariables

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

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) Generate

func (t *TerraformVariables) Generate(parents map[asset.Asset]*asset.State) (*asset.State, 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