Revert "Revert "Feature 11002: Deprecate helmv2"" This reverts commit dfb624e236597b96658da80fe7436b0f92416cc3. TSC request on 30.11 Change-Id: Ieb1e64d052c913b8aaedfe07620245054aa82a08
Revert "Feature 11002: Deprecate helmv2" This reverts commit c81293be8ba0656a5bc7994e4333fedf73b527ff. Change-Id: I89c7d1009c4f059ba497a76557f045434a1d2186 Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
Feature 11002: Deprecate helmv2 Change-Id: I639916d8aeef5a984a4fda2643b68e5bb589b19e Signed-off-by: Luis Vega <lvega@whitestack.com>
Fix bug 2088 by quoting inputs for commands CVE-2022-35503 Change-Id: I392eda9138d399b956dd8072a082e15edab142b7 Signed-off-by: Daniel Arndt <daniel.arndt@canonical.com>
Wrapping Retry for Py3.10 The retrying_async library is not Python 3.10 ready, so we are providing a 3.10 compatible callback for it to use instead of the default one Change-Id: I6e98f6d7ebc2fe134b0e3fe37d180e383044b30b Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
Python3.10/Ubuntu 22.04 part 2 Removal of loop from all methods Change-Id: I05bfe90f82b8c8acba3172de89c7d8e0ee08402b Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
Reformat files according to new black validation Change-Id: Ifebf4e97ae22b0131d0e84c58a18468b454ee6a7 Signed-off-by: Patricia Reinoso <patricia.reinoso@canonical.com>
Feature 10956: Add namespace and force arguments to helm upgrade Change-Id: I8e37e43b72c5f7f63c4b9f49542905727610fa5a Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
Bug 2104 fixed - Added the --reuse-values flag to the upgrade command; - Also, removed the duplicated code from the _get_upgrade_scale_command method, and not this method only calls the _get_upgrade_command to get the command to upgrade/scale the Helm Chart Change-Id: I8bda5450f1f9bd5e2b9771f284e1b904b82fb3df Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
Update _split_version to check if the kdu_model is a reference or a file Change-Id: I80dac9f24f652d2a71d9dcbb88cbc2c6850440db Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Bug 1980 fixed Added the `yaml_format` argument to the `status_kdu` abstract method of the class `K8sConnector`, and changed the corresponding Helm connectors methods accordingly, while maintaining backward compatibility Change-Id: Ic78c951825b7654ccf8246c4fe1fc4d488221bfc Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
Bug 1965 fixed Parsed the manifest returned by the `helm status` command (in the `_status_kdu` method) from a raw string to a list of dictionaries (each entry in the list corresponds to each manifest's document). Change-Id: I791c8fd59fee8ac67bcbd640a100bf63d572efcf Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
Bug 1962 fixed: removed the variable cluster_uuid from init_env method This was applied to the class K8sHelmBaseConnector, and then returned the variable cluster_id instead of cluster_uuid; Also, refactored the overall Helm related code, in order to use the correct cluster uuid (and fixed the corresponding tests); Also made a small fix in the function _uninstall_sw, to remove the service accounts when using different namespaces Change-Id: Ibfdc82f325abf5fd27a225e73f949483a4e68fe2 Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
Feature 10886 manual scaling for KNF (helm chart) deployment Change-Id: Ibdcabd4e3f077bf86749f49e8aeb75aec2935ea2 Signed-off-by: aktas <emin.aktas@ulakhaberlesme.com.tr>
bugfix: kubeconfig passed for helm commands. Bug 1789 Change-Id: Idf8e9141e46296d45dbaa0260e8c9a55b445eb54 Signed-off-by: bravof <fbravo@whitestack.com>
Fix 1539: Add --skip-repo option for Helm If stablerepourl is not set, Helm will skip adding the stablerepo. Depends on: - https://osm.etsi.org/gerrit/#/c/osm/devops/+/10915 Change-Id: I11f10fdfba24ec274d463f12c07d7b0247b37068 Signed-off-by: David Garcia <david.garcia@canonical.com>
Reformat N2VC to standardized format Change-Id: I7bfc2236cd5f059dc1b659e9fb746fef619124b8 Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Feature 10239: Distributed VCA - Add vca_id in all calls that invoke libjuju. This is for being able to talk to the default VCA or the VCA associated to the VIM - Add store.py: Abstraction to talk to the database. - DBMongoStore: Use the db from common to talk to the database - MotorStore: Use motor, an asynchronous mongodb client to talk to the database - Add vca/connection.py: Represents the data needed to connect the VCA - Add EnvironConfig in config.py: Class to get the environment config, and avoid LCM from passing that Change-Id: I28625e0c56ce408114022c83d4b7cacbb649434c Signed-off-by: David Garcia <david.garcia@canonical.com>
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>
Fix bug 1400: Change repo stable for helm2 Change-Id: Idc4c6454e539b0935d57b5b0cdcc0895b5d00895 Signed-off-by: lloretgalleg <illoret@indra.es>