magnum/magnum/tests/unit/api
Feilong Wang 15ecdb8033 Support <ClusterID>/actions/resize API
Now an OpenStack driver for Kubernetes Cluster Autoscaler is being
proposed to support autoscaling when running k8s cluster on top of
OpenStack. However, currently there is no way in Magnum to let
the external consumer to control which node will be removed. The
alternative option is calling Heat API directly but obviously it
is not the best solution and it's confusing k8s community. So with
this patch, we're going to add a new API:

POST <ClusterID>/actions/resize

And the post body will be:

{
    "node_count": 3,
    "nodes_to_remove": ["dd9cc5ed-3a2b-11e9-9233-fa163e46bcc2"],
    "nodegroup": "production_group"
}

The API will be working in a declarative way. For example, there
are 3 nodes in the cluser now, user can propose an API request
like above. Magnum will call Heat to remove the node
dd9cc5ed-3a2b-11e9-9233-fa163e46bcc2 firstly, then bring the node
count back to 3 again.

Task: 29563
Story: 2005052

Change-Id: I7e36ce82c3f442976cc498153950b19c56a1759f
2019-03-19 20:13:17 +00:00
..
controllers Support <ClusterID>/actions/resize API 2019-03-19 20:13:17 +00:00
__init__.py Make room for functional tests 2015-04-02 12:25:43 -04:00
base.py Removed not required style.css file 2016-08-28 17:27:39 +05:30
test_app.py Fix order of arguments in assertEqual 2015-10-10 14:24:44 +08:00
test_attr_validator.py Make providing a keypair optional 2018-11-21 16:17:46 +00:00
test_expose.py Increase test coverage 2016-08-15 11:33:17 +05:30
test_hooks.py Add accidentally deleted test_hooks.py 2016-05-25 00:45:58 +00:00
test_servicegroup.py Fix invalid import order 2016-02-07 22:54:41 -08:00
test_validation.py Don't create clusters of an unsupported type 2017-02-01 14:02:31 -06:00
utils.py federation api: api endpoints 2018-02-09 00:59:31 -03:00