You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by GitBox <gi...@apache.org> on 2020/01/14 04:58:44 UTC

[GitHub] [libcloud] Kami commented on issue #1407: new driver: Kamatera

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:
users@infra.apache.org


With regards,
Apache Git Services