Documentation ¶
Index ¶
- Constants
- func KindCluster(p *platform.Platform) error
- func PodStatus(p *platform.Platform, period time.Duration) error
- func RollingRestart(platform *platform.Platform, opts RollingOptions) error
- func RollingUpdate(platform *platform.Platform, opts RollingOptions) error
- func Status(p *platform.Platform) error
- func Terminate(platform *platform.Platform) error
- func TerminateNodes(platform *platform.Platform, nodes []string) error
- func TerminateOrphans(platform *platform.Platform) error
- func Upgrade(platform *platform.Platform) error
- func VM(platform *platform.Platform, vm *types.VM, konfigs ...string) error
- func VsphereCluster(platform *platform.Platform, burninPeriod time.Duration) error
- func WithVmwareCluster(p *platform.Platform) error
- type Cluster
- type EtcdClient
- func (cluster *EtcdClient) GetEtcdClient(node v1.Node) (*etcd.Client, error)
- func (cluster *EtcdClient) GetEtcdLeader() (*etcd.Client, error)
- func (cluster *EtcdClient) GetHealth(node v1.Node) string
- func (cluster *EtcdClient) GetOrphans() ([]string, error)
- func (cluster *EtcdClient) MoveLeader(name string) error
- func (cluster *EtcdClient) PrintStatus() error
- func (cluster *EtcdClient) RemoveMember(name string) error
- type NodeMachine
- type NodeMachines
- type RollingOptions
Constants ¶
View Source
const ClusterConfiguration = "ClusterConfiguration"
Variables ¶
This section is empty.
Functions ¶
func KindCluster ¶
KindCluster provisions a new Kind cluster
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 TerminateNodes ¶
TerminateNodes deletes all of the specified nodes stops and deletes all VM's for a cluster;
func TerminateOrphans ¶
TerminateOrphans deletes all vm's that have not yet joined the cluster
func VsphereCluster ¶
VsphereCluster provisions or creates a kubernetes cluster
func WithVmwareCluster ¶
Types ¶
type Cluster ¶
type Cluster struct { *platform.Platform Nodes NodeMachines Orphans []types.Machine Kubernetes kubernetes.Interface Etcd *EtcdClient }
type EtcdClient ¶ added in v0.17.13
type EtcdClient struct { *platform.Platform Kubernetes kubernetes.Interface PreferredHostname string Etcd *etcd.EtcdClientGenerator }
func GetEtcdClient ¶ added in v0.17.13
func GetEtcdClient(platform *platform.Platform, client kubernetes.Interface, PreferredHostname string) *EtcdClient
func (*EtcdClient) GetEtcdClient ¶ added in v0.17.13
func (*EtcdClient) GetEtcdLeader ¶ added in v0.17.13
func (cluster *EtcdClient) GetEtcdLeader() (*etcd.Client, error)
func (*EtcdClient) GetHealth ¶ added in v0.17.13
func (cluster *EtcdClient) GetHealth(node v1.Node) string
func (*EtcdClient) GetOrphans ¶ added in v0.17.13
func (cluster *EtcdClient) GetOrphans() ([]string, error)
func (*EtcdClient) MoveLeader ¶ added in v0.17.13
func (cluster *EtcdClient) MoveLeader(name string) error
func (*EtcdClient) PrintStatus ¶ added in v0.17.13
func (cluster *EtcdClient) PrintStatus() error
func (*EtcdClient) RemoveMember ¶ added in v0.17.13
func (cluster *EtcdClient) RemoveMember(name string) error
type NodeMachine ¶
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)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.