Implement get_service and get_services methods for K8sJujuConnector 89/9289/8
authorDavid Garcia <david.garcia@canonical.com>
Thu, 2 Jul 2020 11:56:58 +0000 (13:56 +0200)
committerDavid Garcia <david.garcia@canonical.com>
Thu, 20 Aug 2020 09:47:32 +0000 (11:47 +0200)
commit5d79939ab780d4717fe36bfd62f398b922f84829
treebbcb0cd986c1a4d073dd2d20d083f006cc245474
parent7ff392f6b60850ac7408f96fd42ab16b005ec2bf
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