Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to latest stable kubernetes library release (10.0.1) #97

Merged
merged 3 commits into from
Aug 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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