node

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: Apache-2.0 Imports: 38 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DockerEnv contains the environment variables
	DockerEnv []string
	// DockerOpt contains the option parameters
	DockerOpt []string
	// ExtraOptions contains extra options (if any)
	ExtraOptions config.ExtraOptionSlice
	// AddonList contains the list of addons
	AddonList []string
)

Functions

func Add

func Add(cc *config.ClusterConfig, name string, controlPlane bool, worker bool, k8sVersion string, profileName string) (*config.Node, error)

Add adds a new node config to an existing cluster.

func CacheAndLoadImagesInConfig

func CacheAndLoadImagesInConfig() error

CacheAndLoadImagesInConfig loads the images currently in the config file called by 'start' and 'cache reload' commands.

func CacheKubectlBinary

func CacheKubectlBinary(k8sVerison string) (string, error)

CacheKubectlBinary caches the kubectl binary

func Delete

func Delete(cc config.ClusterConfig, name string) error

Delete stops and deletes the given node from the given cluster

func Retrieve

func Retrieve(cc *config.ClusterConfig, name string) (*config.Node, int, error)

Retrieve finds the node by name in the given cluster

func Save

func Save(cfg *config.ClusterConfig, node *config.Node) error

Save saves a node to a cluster

func Start

func Start(mc config.ClusterConfig, n config.Node, primary bool, existingAddons map[string]bool) (*kubeconfig.Settings, error)

Start spins up a guest and starts the kubernetes node.

Types

This section is empty.

Jump to

Keyboard shortcuts

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