Implement get_service and get_services methods for K8sJujuConnector 09/9409/2
authorDavid Garcia <david.garcia@canonical.com>
Thu, 2 Jul 2020 11:56:58 +0000 (13:56 +0200)
committerbeierlm <mark.beierl@canonical.com>
Wed, 15 Jul 2020 13:58:33 +0000 (15:58 +0200)
commit673401c875a4cb702f38f92c17f53164b0fd42fe
treebbcb0cd986c1a4d073dd2d20d083f006cc245474
parentb78b3e0963c1fbe31daaf71dabac5362588bb88b
Implement get_service and get_services methods for K8sJujuConnector

- Add a new class (n2vc.kubectl.Kubectl) for managing the Kubectl commands
  - Add unit tests
- Add get_config_file() method for getting the path of the kubeconfig in K8sJujuConnector
- Implement get_service() and get_services() methods in K8sJujuConnector

Change-Id: I883ec21dad519c2dc65cb9bd601e539685336756
Signed-off-by: David Garcia <david.garcia@canonical.com>
n2vc/k8s_juju_conn.py
n2vc/kubectl.py [new file with mode: 0644]
n2vc/tests/unit/test_kubectl.py [new file with mode: 0644]
requirements.txt
setup.py