Overview
To better support more HPA capabilities without modifying the implementation code for Multi-cloud. so we need to extract the HPA discovery part of the code make it into a plug-in(HPA Discovery Plugin). if we want to add new HPA feature or modify the implementation code for the currently feature, we just need to modify HPA Discovery Plugin code.
Extract the original hpa discovery part code and make it into a plug-in.
we need to add hook in openstack, kubernetes and others plugin. then we develop
plug-ins for various languages.
We plan to develop python language and golang language.
Add New hardware
1.change the hpa discovery plugin
2.create new docker image based on the base image
example:
from multi-windriver:1.4.0
add hpa-discovery-driver1(device vendor1)
add hpa-discovery-driver2(device vendor2)
AR:
The first question: the first use case, if you have one HPA discovery plugin, how can you build artifact and package.
$ python gerrit.com/**/setup.py compile and install # when docker build image time.
AR: add version control (branch name, commit id).
plugin → hpa-discovery-driver
starlingx (intel nic, )
Usage
For python, run below command in openstack plugin
$ python setup.py
Test
Unit Tests with tox