Kami commented on issue #1407: new driver: Kamatera
URL: https://github.com/apache/libcloud/issues/1407#issuecomment-574001587
 
 
   I think best approach would be to utilize option 1) in combination with 
allowing the user to specify a custom size by instantiating ``NodeImage`` class 
with custom values.
   
   Here is an example of a driver which does that - 
https://libcloud.readthedocs.io/en/stable/compute/drivers/cloudsigma.html#create-a-server-using-a-custom-node-size
   
   For custom attributes which are not supported by the ``NodeImage`` class you 
either have a choice of utilizing ``NodeImage`` class directly and putting 
custom attributes into ``extra`` directory or by subclassing it.
   
   Utilizing ``NodeImage`` directly is preferred over custom sub-class 
(especially if other custom attributes are optional - this way it still works 
out of the box with "standard" NodeImage class instances).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to