Move kubernetes client to >=11.0.0

This version had a breaking api change [0], which this
aligns with. This version also adds support for kubernetes
1.14 and 1.15 apis.

[0]: https://github.com/kubernetes-client/python/blob/master/CHANGELOG.md#v1100

Change-Id: I01866bd5739e4eebb3166cb583d07efb046360aa
This commit is contained in:
Sean Eagan 2020-03-20 08:49:45 -05:00
parent 6cc6346cde
commit 268d7a3958
2 changed files with 3 additions and 3 deletions

View File

@ -370,7 +370,7 @@ class K8s(object):
group, version, namespace, plural, body)
def delete_custom_resource(
self, group, version, namespace, plural, name, body):
self, group, version, namespace, plural, name, body={}):
"""Deletes a custom resource
:param group: the custom resource's group
@ -384,7 +384,7 @@ class K8s(object):
:rtype: object
"""
return self.custom_objects.delete_namespaced_custom_object(
group, version, namespace, plural, name, body)
group, version, namespace, plural, name, body=body)
def read_custom_resource(self, group, version, namespace, plural, name):
"""Gets information on a specified custom resource

View File

@ -4,7 +4,7 @@ grpcio==1.16.0
jsonschema>=2.6.0
keystoneauth1==2.21.0
keystonemiddleware==4.9.1
kubernetes>=9.0.0
kubernetes>=11.0.0
Paste>=2.0.3
PasteDeploy>=1.5.2
protobuf>=3.4.0