tacker/tacker
LiangLu 26a2b5fce2 Fix missing required parameter when k8s_obj init
While deploying CNF(deployment) using pod-affinity rules, a
parameter error happended because the topology_key is not
assigned when initializing k8s object.

This patch fixes this bug by adding the topology_key's default
value into `must_param` in translate_outputs._create_k8s_object().
At the same time, in order to deal with the recurrence of this
kind of bug, we checked the required parameters of all resources
in kubernetes again and added them to must_param.
    * Kubernetes version: from v1.18.20 to v1.21.1
    * Kubernetes-python-client version: v18.20.0

The major changes from the "must_param" used in the previous
Wallaby release of Tacker are probably as follows:

RuntimeRawExtension
  The `data` parameter of `V1ControllerRevision`[1] in v11.0.0
  was `RuntimeRawExtension`[2], but the `RuntimeRawExtension` was
  not support for v12.0.0 or later. Therefore `V1ControllerRevision`
  in v18.20.0[3] it has been changed to` object` type.

V1ServiceReference
  The `service` parameter of `V1APIServiceSpec`[4] in v11.0.0 was
  `V1ServiceReference`[5], but the `V1ServiceReference` was not
  support for v12.0.0 or later.
  Therefore `V1APIServiceSpec` in v18.20.0[6] it has been changed
  to `ApiregistrationV1ServiceReference`[7].

V1LimitRangeItem
  The `type` parameter of `V1LimitRangeItem`[8] in v11.0.0 was
  optional type, but the parameter has changed to must param
  in v18.20.0[9].
  Therefore, the parameter should be added into `must_param`.

[1] https://github.com/kubernetes-client/python/blob/v11.0.0/kubernetes/docs/V1ControllerRevision.md
[2] https://github.com/kubernetes-client/python/blob/v11.0.0/kubernetes/docs/RuntimeRawExtension.md
[3] https://github.com/kubernetes-client/python/blob/v18.20.0/kubernetes/docs/V1ControllerRevision.md
[4] https://github.com/kubernetes-client/python/blob/v11.0.0/kubernetes/docs/V1APIServiceSpec.md
[5] https://github.com/kubernetes-client/python/blob/v11.0.0/kubernetes/docs/V1ServiceReference.md
[6] https://github.com/kubernetes-client/python/blob/v18.20.0/kubernetes/docs/V1APIServiceSpec.md
[7] https://github.com/kubernetes-client/python/blob/v18.20.0/kubernetes/docs/ApiregistrationV1ServiceReference.md
[8] https://github.com/kubernetes-client/python/blob/v11.0.0/kubernetes/docs/V1LimitRangeItem.md
[9] https://github.com/kubernetes-client/python/blob/v18.20.0/kubernetes/docs/V1LimitRangeItem.md

Closes-Bug: #1928153
Closes-Bug: #1940602
Change-Id: If77be98d0c4cec6f4c860ae84978f59772f9a6ee
2021-08-25 13:35:55 +09:00
..
agent from i18n import _ when quoting them 2019-08-09 09:59:48 +08:00
api Fix Patch Individual VNF instance 2021-07-15 11:30:22 +09:00
cmd [goal] Deprecate the JSON formatted policy file 2021-01-22 04:18:31 +00:00
common Retaining permission of VNF package files 2021-07-17 15:32:53 +00:00
conductor Merge "Fix Healing so image is updated after Healing" 2021-08-01 15:47:53 +00:00
conf Support Client Notification Endpoint Test 2021-03-26 14:19:53 +09:00
db Fix migration for SQLAlchemy 1.4 2021-07-10 06:50:43 +05:30
extensions Support for Change External VNF Connectivity 2021-03-26 17:54:12 +09:00
glance_store Introduce py39 for unittests 2020-11-08 06:11:48 +00:00
hacking Update hacking for Python3 2020-04-24 13:48:53 +02:00
keymgr Drop most of six importings 2020-10-19 12:10:05 +00:00
locale Imported Translations from Zanata 2020-10-24 08:58:53 +00:00
mistral Replaces uuid.uuid4 with uuidutils.generate_uuid() 2017-07-18 14:00:58 +00:00
nfvo Adapt to python-mistralclient v4.2.0 for PingVIM 2021-02-10 04:51:17 +00:00
objects Fix Patch Individual VNF instance 2021-07-15 11:30:22 +09:00
plugins Support for Change External VNF Connectivity 2021-03-26 17:54:12 +09:00
policies Support for Change External VNF Connectivity 2021-03-26 17:54:12 +09:00
releasenotes/notes Support for Change External VNF Connectivity 2021-03-26 17:54:12 +09:00
services Drop most of six importings 2020-10-19 12:10:05 +00:00
tests Fix missing required parameter when k8s_obj init 2021-08-25 13:35:55 +09:00
tosca Fix UT and FT VNFD yaml because lack of properties 2021-04-01 13:32:28 +09:00
vnflcm Merge "Fix MgmtDriver can not be called when scale CNF" 2021-08-01 16:06:01 +00:00
vnfm Fix missing required parameter when k8s_obj init 2021-08-25 13:35:55 +09:00
__init__.py Drop most of six importings 2020-10-19 12:10:05 +00:00
_i18n.py Remove i18n.enable_lazy() call from tacker.cmd 2018-11-14 14:56:52 +05:30
alarm_receiver.py Fix to encrypt password print in debug logs 2020-11-17 02:17:02 +00:00
auth.py Support of Server/Basic certification in OAuth2.0 2020-10-05 07:18:14 +00:00
context.py Remove deprecation warning messages 2019-09-20 12:27:06 +05:30
manager.py Sychronize vnf action tasks 2020-04-22 07:43:50 +00:00
policy.py [goal] Deprecate the JSON formatted policy file 2021-01-22 04:18:31 +00:00
service.py Fix two-stage process launcher in tacker-server 2021-04-23 09:33:49 +09:00
version.py Cleanup vim settings 2016-03-28 13:03:56 +02:00
wsgi.py Fix required attributes when error happened 2021-07-30 16:16:02 +09:00