machines

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2019 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package machines is responsible for creating Machine objects for machinepools.

Index

Constants

This section is empty.

Variables

View Source
var (

	// MasterMachineFileName is the format string for constucting the master Machine filenames.
	MasterMachineFileName = "99_openshift-cluster-api_master-machines-%s.yaml"

	// MasterUserDataFileName is the filename used for the master user-data secret.
	MasterUserDataFileName = "99_openshift-cluster-api_master-user-data-secret.yaml"
)

Functions

This section is empty.

Types

type Master

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

Master generates the machines for the `master` machine pool.

func (*Master) Dependencies

func (m *Master) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed by the Master asset

func (*Master) Files added in v0.13.0

func (m *Master) Files() []*asset.File

Files returns the files generated by the asset.

func (*Master) Generate

func (m *Master) Generate(dependencies asset.Parents) error

Generate generates the Master asset.

func (*Master) Load added in v0.13.0

func (m *Master) Load(f asset.FileFetcher) (found bool, err error)

Load reads the asset files from disk.

func (*Master) Machines added in v0.13.0

func (m *Master) Machines() [][]byte

Machines returns master Machine manifest YAML.

func (*Master) Name

func (m *Master) Name() string

Name returns a human friendly name for the Master Asset.

func (*Master) StructuredMachines added in v0.13.0

func (m *Master) StructuredMachines() ([]machineapi.Machine, error)

StructuredMachines returns master Machine manifest structures.

type Worker

type Worker struct {
	MachineSetRaw     []byte
	UserDataSecretRaw []byte
}

Worker generates the machinesets for `worker` machine pool.

func (*Worker) Dependencies

func (w *Worker) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed by the Worker asset

func (*Worker) Generate

func (w *Worker) Generate(dependencies asset.Parents) error

Generate generates the Worker asset.

func (*Worker) Name

func (w *Worker) Name() string

Name returns a human friendly name for the Worker Asset.

Directories

Path Synopsis
Package aws generates Machine objects for aws.
Package aws generates Machine objects for aws.
Package libvirt generates Machine objects for libvirt.
Package libvirt generates Machine objects for libvirt.
Package openstack generates Machine objects for openstack.
Package openstack generates Machine objects for openstack.

Jump to

Keyboard shortcuts

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