Feature 10997: Adds helm OCI registry login Change-Id: I1bc12bdf52f082900c3388d03c31e52841017b94 Signed-off-by: Gabriel Cuba <gcuba@whitestack.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>
Ensure async calls are performed Change-Id: I3f8afe4c7aa4e5ab1e5f2b19edf4c07b5d6a5d64 Signed-off-by: limon <alimonj@indra.es>
Bug 2005 fixed: removed the while true from K8sHelmBaseConnector._store_status Made the necessary refactor and fixed the tests accordingly. Now, the `_store_status` method is not executed forever, it is only executed once each time is called. Change-Id: Ia96ab3152fe7f838d1b81dd02c2d22373b805f4a Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
Update only the repo that was added instead of all repos Change-Id: I70c75ced584b40873566a36f2dfc900abc824767 Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Update helm repo after adding the repo Change-Id: I4cd2a073cb862fac4d7646e65f7b3df6068a1c5a 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 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>
Unit tests improvements - From now on, black must pass. Jenkins will give a -1 if it doesn't - Ignore E203 because it is not pep8 compliant, and conflicts with black https://github.com/psf/black/issues/315#issuecomment-395457972 - Black fixes and minor fix in unit test - Fix devops-stages/stage-test.sh: jenkins was not giving a -1 when tox was failing Change-Id: Ic7318dcb6d4006a271607cd064a1f36d0936b7b9 Signed-off-by: David Garcia <david.garcia@canonical.com>
Fix Bug 1575 This fixes the race condtion when k8s cluster responding too fast Change-Id: I3f9e18c7bba942689e4b056ead60349fdb72c795 Signed-off-by: aktas <emin.aktas@ulakhaberlesme.com.tr>
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>
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 flake8 minor issues Change-Id: I1348e9807b8071a1cbf50b97144069a5b6709def Signed-off-by: David Garcia <david.garcia@canonical.com>
Changed url stable repository for helm3 Change-Id: I28c45df018e32a7bc984645a8f058baaa1f7b6c7 Signed-off-by: lloretgalleg <illoret@indra.es>
Corrected bugs on support for helm v3 Change-Id: I064a8d45490989c75a31384cf16e7ab8755542c3 Signed-off-by: lloretgalleg <illoret@indra.es>