cloudinstances

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNodeMap

func GetNodeMap(nodes []v1.Node, cluster *kops.Cluster) map[string]*v1.Node

GetNodeMap returns a list of nodes keyed by their external id

Types

type CloudInstanceGroup

type CloudInstanceGroup struct {
	// HumanName is a user-friendly name for the group
	HumanName     string
	InstanceGroup *api.InstanceGroup
	Ready         []*CloudInstanceGroupMember
	NeedUpdate    []*CloudInstanceGroupMember
	MinSize       int
	MaxSize       int

	// Raw allows for the implementer to attach an object, for tracking additional state
	Raw interface{}
}

CloudInstanceGroup is the cloud backing of InstanceGroup.

func (*CloudInstanceGroup) NewCloudInstanceGroupMember

func (c *CloudInstanceGroup) NewCloudInstanceGroupMember(instanceId string, newGroupName string, currentGroupName string, nodeMap map[string]*v1.Node) error

NewCloudInstanceGroupMember creates a new CloudInstanceGroupMember

func (*CloudInstanceGroup) Status

func (c *CloudInstanceGroup) Status() string

Status returns a human-readable Status indicating whether an update is needed

type CloudInstanceGroupMember

type CloudInstanceGroupMember struct {
	// ID is a unique identifier for the instance, meaningful to the cloud
	ID string
	// Node is the associated k8s instance, if it is known
	Node *v1.Node
	// CloudInstanceGroup is the managing CloudInstanceGroup
	CloudInstanceGroup *CloudInstanceGroup
}

CloudInstanceGroupMember describes an instance in a CloudInstanceGroup group.

Jump to

Keyboard shortcuts

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