func hasAssociatedInstance(node *core.Node, instances []*instances.InstanceInfo) bool {
	for _, instance := range instances {
		for _, nodeAddress := range node.Status.Addresses {
			if instance.Address == nodeAddress.Address {
				return true
			}
		}
	}
	return false
}
// hasAssociatedInstance returns true if the given node is associated with an instance in the given slice
hasAssociatedInstance returns true if the given node is associated with an instance in the given slice
// hasAssociatedInstance returns true if the given node is associated with an instance in the given slice
func hasAssociatedInstance(node *core.Node, instances []*instances.InstanceInfo) bool {
	for _, instance := range instances {
		for _, nodeAddress := range node.Status.Addresses {
			if instance.Address == nodeAddress.Address {
				return true
			}
		}
	}
	return false
}
func hasAssociatedInstance ( node * core . Node , instances [ ] * instances . InstanceInfo ) bool { for _ , instance := range instances { for _ , nodeAddress := range node . Status . Addresses { if instance . Address == nodeAddress . Address { return true } } } return false }
hasAssociatedInstance returns true if the given node is associated with an instance in the given slice
hasAssociatedInstance returns true if the given node is associated with an instance in the given slice