Add generate_kdu_instance_name method in K8sConn 17/10417/1
authorDavid Garcia <david.garcia@canonical.com>
Tue, 23 Feb 2021 10:47:29 +0000 (11:47 +0100)
committerDavid Garcia <david.garcia@canonical.com>
Tue, 2 Mar 2021 08:16:49 +0000 (09:16 +0100)
commitce487f90f0548b375b14b4b19e93f16dac62c942
tree25adec55aa7cc1fae5d343926621a0cbd21e20cb
parentee5c9a14946e8746a436e4c5e647d5147ab0855b
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