cloudinstances

package
v1.11.0 Latest Latest
Warning

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

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

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