tacker/tacker/vnfm/policy_actions
Yi Feng 17fed56583 Sample script for healing k8s with kubespray
This patch and "Sample script for deploying k8s with kubespray",
"Sample script for scaling k8s with kubespray" are actually the
same one. For the convenience of review, they
were submitted separately.

This patch is only about the content of heal k8s nodes. However,
since the processing of scale_start is similar to heal_start,
and the processing of scale_end is similar to the processing of
heal_end, the code of scale has been refactored and the common
processing is extracted as a common method. At the same time,
when CNF needs to perform `heal_entire`, the configuration file
of Load Balancer needs to be re-modified, so heal-related
processing is added to the example MgmtDriver of CNF's `NodePort`.

Because the input parameter of terminate and heal is limited,
the type of this parameter is also modified. In
`NFV-SOL003 v2.6.1`[1], the `additionalParams`'s type is
`KeyValuePairs`, so we changed the additionalParams's type from
`list` to `dict` in heal_vnf_request. In order not to affect
the original function, we modified the original additional_params
to legacy_additional_params and retained the original processing,
and revised the UT code.

[1] https://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/003/02.06.01_60/gs_NFV-SOL003v020601p.pdf

Implements: blueprint k8s-mgmtdriver-kubespray
Change-Id: Ibf8b56904b1326f5c7d323c9295d10e303f4b4b8
2021-09-23 04:46:11 +00:00
..
autoscaling Add new policy action: vdu_autoheal 2019-01-24 09:55:30 +09:00
log Add new policy action: vdu_autoheal 2019-01-24 09:55:30 +09:00
respawn Add new policy action: vdu_autoheal 2019-01-24 09:55:30 +09:00
vdu_autoheal Sample script for healing k8s with kubespray 2021-09-23 04:46:11 +00:00
__init__.py Refactor: separating backend actions out from monitor 2017-05-17 05:53:31 -07:00
abstract_action.py Drop most of six importings 2020-10-19 12:10:05 +00:00