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 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>
Feature 10908 pass over upgrade request to Libjuju Change-Id: I7a4ea434f22b939a80f58941a892ed92dae62ee6 Signed-off-by: aticig <gulsum.atici@canonical.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>
feature: helm charts repos with certs Change-Id: I427d20f6e184c889de91a384d921eb7edaf00e95 Signed-off-by: bravof <fbravo@whitestack.com>
Feature 10886 manual scaling for KNF (helm chart) deployment Change-Id: Ibdcabd4e3f077bf86749f49e8aeb75aec2935ea2 Signed-off-by: aktas <emin.aktas@ulakhaberlesme.com.tr>
Reformat N2VC to standardized format Change-Id: I7bfc2236cd5f059dc1b659e9fb746fef619124b8 Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Feature 10509 manual scaling for native k8s charm Juju version has to be upgraded to 2.8.6 because of a typo error. You can see bug report: https://github.com/juju/python-libjuju/issues/477 and release note: https://github.com/juju/python-libjuju/commit/facd1f19eae65728b6c7c3b823939bb35ae45ed2 Change-Id: Iae4262e64debdf6b4d36b37778ec29f0dd46bac1 Signed-off-by: aktas <emin.aktas@ulakhaberlesme.com.tr>
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>
Added new functionaliyty to obtain services data Change-Id: I140dafb29f7636e4b8e481b865faa414d7fb1136 Signed-off-by: lloretgalleg <illoret@indra.es>
Enable lint, flake8 and unit tests Cleans up non pep compliant code. Adds a simple unit test. Formats according to black. Tox automatically runs lint, flake8 and unit test suite with coverage. To run each individually, execute: tox -e pylint tox -e black tox -e flake8 tox -e cover Note that these are all run for each patch via Jenkins. The full tox suite should be run locally before any commit to ensure it will not fail in Jenkins. Change-Id: I2f87abe3d5086d6d65ac33a27780c498fc7b1cd3 Signed-off-by: beierlm <mark.beierl@canonical.com>
K8s action support This commit enables k8s actions by executing them the same way as any other ns-action. It needs a mandatory parameter which is application-name. This commit depends on another commit in LCM. https://osm.etsi.org/gerrit/#/c/osm/LCM/+/8767/ Change-Id: I375fb93d55f1255d425f229fe1a88968b19ae3d0 Signed-off-by: Dominik Fleischmann <dominik.fleischmann@canonical.com>
adding optional namespace to K8s install Change-Id: Ib433aff72f68f56359917a8a3716e6b798ea330b Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
fix 1040 report error on failing delete_namespace Do not capture asyncio.CancelledError remove unneeded loging. e.g. certificates Change-Id: Ia4f8c19bf693b689aeaaaeb76b006cd25c7295e1 Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
Standardize logging This commit will standardize logging for all the code, so that it follows the same format as LCM. The logging for k8s_juju_conn.py is in commit 8638. Change-Id: I0ea199018e96b167ecbf8fd1ab16e5065a2e2bdf Signed-off-by: Dominik Fleischmann <dominik.fleischmann@canonical.com>
Synchronize helm repos on ns instantiation instead of creation Change-Id: Ia4f35283399d2777ff3df1fb2824a68cbaec4804 Signed-off-by: lloretgalleg <illoret@indra.es>
1007 Use KDU name and NS id for model names This commit is part of the fix for Bug 1007. Previously The wrong naming was used in the uninstall function and it was deleting each application one by one. Now the whole model will be deleted automatically. This commit is dependent on this one in LCM: https://osm.etsi.org/gerrit/#/c/osm/LCM/+/8555/ Additionally the naming for models has changes so that each KDU gets is own model with the following naming: <kdu-name>-<ns-id> . This will fix multi KDU support. Change-Id: I912105417d67d5f3d95b997b91d7a5b7388bdf0d Signed-off-by: Dominik Fleischmann <dominik.fleischmann@canonical.com>
k8s_juju_conn.py: fix cloud name for k8s Change-Id: Id0e605f010306bd71728e1335636340674bbfb2d Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Adding inspect methods for K8s Change-Id: I45fba22073e7dfdfab2f3a1d1cca1f0705145e0c Signed-off-by: quilesj <e.nvi001.tid@telefonica.com>