Add generate_kdu_instance_name method in K8sConn 77/10377/2
authorDavid Garcia <david.garcia@canonical.com>
Tue, 23 Feb 2021 10:47:29 +0000 (11:47 +0100)
committerDavid Garcia <david.garcia@canonical.com>
Thu, 25 Feb 2021 18:00:02 +0000 (19:00 +0100)
commitc4da25cc55411e6cea1e83d29c206bce421f0728
treea68c67e921cb27ac1fbf225f696ccb63a4fa24b9
parent5ab1064304b993ea6364b5d932c5c0cb7434cfb7
Add generate_kdu_instance_name method in K8sConn

The reason for adding this method is for LCM to call it before calling
K8sConn.install(). That way, LCM can record it in the DB before
finishing the instantiation of the KDU.

This will help fixing bug 1412.

Change-Id: Iacf71c4d2040dbdc966cff2bddd697c4ea1c9a06
Signed-off-by: David Garcia <david.garcia@canonical.com>
n2vc/k8s_conn.py
n2vc/k8s_helm3_conn.py
n2vc/k8s_helm_base_conn.py
n2vc/k8s_helm_conn.py
n2vc/k8s_juju_conn.py
n2vc/tests/unit/test_k8s_helm3_conn.py
n2vc/tests/unit/test_k8s_helm_conn.py
n2vc/tests/unit/test_k8s_juju_conn.py