cluster

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClustersCommand

func CreateClustersCommand(provider *kind.Provider, box *packr.Box) *cobra.Command

CreateClustersCommand returns a new cobra.Command under create command for armada

func GetCniFromFlags

func GetCniFromFlags(flags *CreateClusterFlagpole) string

GetCniFromFlags returns the cni name from flags

func GetTargetClusters added in v0.1.3

func GetTargetClusters(provider *kind.Provider, flags *CreateClusterFlagpole) ([]*cluster.Config, error)

GetTargetClusters returns a list of clusters to create

Types

type CreateClusterFlagpole

type CreateClusterFlagpole struct {
	// ImageName is the node image used for cluster creation
	ImageName string

	// Wait is a time duration to wait until cluster is ready
	Wait time.Duration

	// Retain if you keep clusters running even if error occurs
	Retain bool

	// Weave if to install weave cni
	Weave bool

	// Flannel if to install flannel cni
	Flannel bool

	// Calico if to install calico cni
	Calico bool

	// Kindnet if to install kindnet default cni
	Kindnet bool

	// DeployTiller if to install tiller
	Tiller bool

	// Overlap if to create clusters with overlapping cidrs
	Overlap bool

	// Debug sets log level to debug
	Debug bool

	// NumClusters is the number of clusters to create
	NumClusters int
}

CreateClusterFlagpole is a list of cli flags for create clusters command

Jump to

Keyboard shortcuts

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