Bug 1995 fixed: possibility of defining the K8s namespace for Juju Bundles 00/11900/14
authorPedro Escaleira <escaleira@av.it.pt>
Tue, 19 Apr 2022 19:40:09 +0000 (20:40 +0100)
committergarciadav <david.garcia@canonical.com>
Tue, 21 Jun 2022 08:18:27 +0000 (10:18 +0200)
commit764d8664333e7a6f16353bc8f578c5681f66433f
treecd3c6f875f1556def7c01ff501973ddd7043731f
parentaa5deb75e23991d357e30d90fbb68c03f6ba5bd4
Bug 1995 fixed: possibility of defining the K8s namespace for Juju Bundles

Now, N2VC will use the namespace passed by argument to the methods
install and get_services. Also added this argument to other functions
where it should be passed. When it is not passed, for now it is obtained
from the nsrs, but it should be always passed to avoid queries to the
database, while mainaining backward compatibility.
Updated the N2VC tests accordingly.

Change-Id: Iace944506ba212034efdbb87c6f2d74f8265ea4e
Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
n2vc/k8s_juju_conn.py
n2vc/tests/unit/test_k8s_juju_conn.py