magnum/magnum/api
Bharat Kunwar 55fd12a47c [fix] Use default_ng_worker.node_count for patches
At present, when a cluster is patched without node_count (e.g. when
health_status and health_status_reason are patched), the node_count in
the cluster_update invocation contains cluster.node_count instead of
default_ng_worker.node_count which causes unexpected behaviour when a
cluster has additional nodegroups (e.g. the default-worker size gets
incremented by 1 if the additional nodegroup has 1 worker each time the
cluster is patched).

This PS fixes this issue by using default_ng_worker.node_count if path
"/node_count" is not present in the patch object.

Story: 2005266
Task: 39962

Change-Id: I0df5149860604f0adf52701df371e34a6e667b9d
2020-06-11 10:30:21 +00:00
..
controllers [fix] Use default_ng_worker.node_count for patches 2020-06-11 10:30:21 +00:00
middleware Update hacking for Python3 2020-03-31 20:09:46 +02:00
__init__.py Initial commit from github (squashed) 2014-11-18 09:23:37 -05:00
app.py api: Do not guess based on name extension 2020-05-26 16:31:00 +00:00
app.wsgi Add app.wsgi to target of pep8 2017-11-18 01:27:34 -08:00
attr_validator.py Use oslo_serialization instead of the json module directly 2019-01-21 16:28:03 -08:00
config.py Fix api access with public acl routes 2016-02-29 13:59:20 +08:00
expose.py Drop XML support in Magnum 2015-07-13 20:03:23 -05:00
hooks.py Add support for www_authenticate_uri in ContextHook 2018-12-06 20:07:23 +00:00
http_error.py Update api-ref location 2019-07-22 18:30:23 +02:00
rest_api_version_history.rst Add microversion and release notes for quotas API 2017-02-09 10:47:07 -06:00
servicegroup.py Remove the usage of MagnumObjectDictCompat from magnum_service 2017-01-06 03:25:28 +00:00
utils.py Labels override 2020-05-13 08:07:29 +00:00
validation.py [k8s] Support updating k8s cluster health status 2020-04-09 16:59:26 +12:00
versioned_method.py Fix some typos 2017-02-16 00:20:01 -08:00