provision

package
v0.76.5 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const ClusterConfiguration = "ClusterConfiguration"

Variables

This section is empty.

Functions

func KindCluster

func KindCluster(p *platform.Platform) error

KindCluster provisions a new Kind cluster

func PodStatus added in v0.17.10

func PodStatus(p *platform.Platform, period time.Duration) error

func RollingRestart

func RollingRestart(platform *platform.Platform, opts RollingOptions) error

Perform a rolling restart of nodes

func RollingUpdate

func RollingUpdate(platform *platform.Platform, opts RollingOptions) error

Perform a rolling update of nodes

func Status

func Status(p *platform.Platform) error

func Terminate added in v0.37.0

func Terminate(platform *platform.Platform) error

Terminate stops and deletes all VM's for a cluster;

func TerminateNodes

func TerminateNodes(platform *platform.Platform, nodes []string) error

TerminateNodes deletes all of the specified nodes stops and deletes all VM's for a cluster;

func TerminateOrphans

func TerminateOrphans(platform *platform.Platform) error

TerminateOrphans deletes all vm's that have not yet joined the cluster

func Upgrade

func Upgrade(platform *platform.Platform) error

Upgrade the kubernetes control plane to the declared version

func VM

func VM(platform *platform.Platform, vm *types.VM, konfigs ...string) error

VM provisions a new standalone VM

func VsphereCluster

func VsphereCluster(platform *platform.Platform, burninPeriod time.Duration) error

VsphereCluster provisions or creates a kubernetes cluster

func WithVmwareCluster

func WithVmwareCluster(p *platform.Platform) error

Types

type Cluster

type Cluster struct {
	*platform.Platform
	Nodes      NodeMachines
	Orphans    []types.Machine
	Kubernetes kubernetes.Interface
}

func GetCluster

func GetCluster(platform *platform.Platform) (*Cluster, error)

func (*Cluster) Cordon

func (cluster *Cluster) Cordon(node v1.Node) error

func (*Cluster) Terminate added in v0.17.13

func (cluster *Cluster) Terminate(node types.Machine) error

type NodeMachine

type NodeMachine struct {
	Node    v1.Node
	Machine types.Machine
}

func (NodeMachine) String added in v0.17.9

func (node NodeMachine) String() string

type NodeMachines

type NodeMachines []NodeMachine

func (NodeMachines) Len

func (n NodeMachines) Len() int

func (NodeMachines) Less

func (n NodeMachines) Less(i, j int) bool

func (*NodeMachines) Pop added in v0.17.10

func (n *NodeMachines) Pop() NodeMachine

func (*NodeMachines) PopN added in v0.17.10

func (n *NodeMachines) PopN(count int) *[]NodeMachine

func (*NodeMachines) Push added in v0.17.10

func (n *NodeMachines) Push(x NodeMachine)

func (NodeMachines) Swap

func (n NodeMachines) Swap(i, j int)

type RollingOptions

type RollingOptions struct {
	Timeout                time.Duration
	MinAge                 time.Duration
	Max                    int
	MaxSurge               int
	HealthTolerance        int
	BurninPeriod           time.Duration
	Force                  bool
	ScaleSingleDeployments bool
	MigrateLocalVolumes    bool
	Masters, Workers       bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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