X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=n2vc%2Fk8s_conn.py;h=ef4f5f2a8635cd853a97f4ac83c7bc315b174134;hb=HEAD;hp=1c886530719a6d57b5d783fd3f55b37085043c34;hpb=085fa8d4658a9b621354d5a08853086e2696abdc;p=osm%2FN2VC.git diff --git a/n2vc/k8s_conn.py b/n2vc/k8s_conn.py index 1c88653..8fd8a7d 100644 --- a/n2vc/k8s_conn.py +++ b/n2vc/k8s_conn.py @@ -194,6 +194,9 @@ class K8sConnector(abc.ABC, Loggable): timeout: float = 300, params: dict = None, db_dict: dict = None, + reset_values: bool = False, + reuse_values: bool = True, + reset_then_reuse_values: bool = False, force: bool = False, ): """ @@ -214,6 +217,9 @@ class K8sConnector(abc.ABC, Loggable): path: }, e.g. {collection: "nsrs", filter: {_id: , path: "_admin.deployed.K8S.3"} + :param reset_values: force reseting values + :param reuse_values: force reusing values (default) + :param reset_then_reuse_values: forces reseting values, then apply the last release's values :param force: force recreation of resources if necessary :return: reference to the new revision number of the KDU instance """ @@ -484,7 +490,6 @@ class K8sConnector(abc.ABC, Loggable): self.log.debug("status={}".format(status)) try: - the_table = db_dict["collection"] the_filter = db_dict["filter"] the_path = db_dict["path"]