Skip to content

Commit

Permalink
Merge pull request #97 from Duke-GCB/kubernetes-10.0.1
Browse files Browse the repository at this point in the history
Upgrade to latest stable kubernetes library release (10.0.1)
  • Loading branch information
johnbradley authored Aug 21, 2019
2 parents 367e35c + 4e5a1a9 commit 3de52f8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion calrissian/k8s.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def should_delete_pod(self):

def delete_pod_name(self, pod_name):
try:
self.core_api_instance.delete_namespaced_pod(pod_name, self.namespace, client.V1DeleteOptions())
self.core_api_instance.delete_namespaced_pod(pod_name, self.namespace)
except client.rest.ApiException as e:
raise CalrissianJobException('Error deleting pod named {}'.format(pod_name), e)

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ google-auth==1.6.3
humanfriendly==4.18
idna==2.8
isodate==0.6.0
kubernetes==8.0.1
kubernetes==10.0.1
lockfile==0.12.2
lxml==4.4.0
mistune==0.8.4
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def run(self):
description='CWL runner for Kubernetes',
install_requires=[
'urllib3<1.25,>=1.24.2',
'kubernetes==8.0.1',
'kubernetes==10.0.1',
'cwltool==1.0.20190621234233',
],
test_suite='nose2.collector.collector',
Expand Down
2 changes: 1 addition & 1 deletion tests/test_k8s.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_load_config_get_namespace_external(self, mock_config, mock_read_file):
self.assertTrue(mock_config.load_kube_config.called)


@patch('calrissian.k8s.client')
@patch('calrissian.k8s.client', autospec=True)
@patch('calrissian.k8s.load_config_get_namespace')
class KubernetesClientTestCase(TestCase):

Expand Down

0 comments on commit 3de52f8

Please sign in to comment.