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
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.
Click to show internal directories.
Click to hide internal directories.