Skip to content

Commit

Permalink
Merge pull request #133 from 2gis/fix-custom-object-delete
Browse files Browse the repository at this point in the history
Fix custom resources deletion and update dependencies
  • Loading branch information
seleznev committed Dec 14, 2020
2 parents 2e6b886 + 5dfb90d commit a687692
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions k8s_handle/k8s/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,12 @@ def delete(self):
if self.namespace:
return self.api.delete_namespaced_custom_object(
self.group, self.version, self.namespace, self.plural, self.name,
client.V1DeleteOptions(propagation_policy='Foreground')
body=client.V1DeleteOptions(propagation_policy='Foreground')
)

return self.api.delete_cluster_custom_object(
self.group, self.version, self.plural, self.name,
client.V1DeleteOptions(propagation_policy='Foreground')
body=client.V1DeleteOptions(propagation_policy='Foreground')
)

except ApiException as e:
Expand Down
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
requests==2.22.0
jinja2==2.10.1
PyYAML==5.1
kubernetes==12.0.0
semver==2.8.1
requests==2.25.0
jinja2==2.11.2
PyYAML==5.3.1
kubernetes==12.0.1
semver==2.13.0

0 comments on commit a687692

Please sign in to comment.