File tree 2 files changed +1
-9
lines changed
2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change 17
17
from kubernetes import client
18
18
from kubernetes import config
19
19
from kubernetes import watch
20
- from kubernetes .client import api_client
21
20
from kubernetes .client .rest import ApiException
22
- from unittest .mock import Mock
23
21
from oslo_config import cfg
24
22
from oslo_log import log as logging
25
23
29
27
CONF = cfg .CONF
30
28
LOG = logging .getLogger (__name__ )
31
29
32
- # TODO: Remove after this bug is fixed and we have uplifted to a fixed version:
33
- # https://github.com/kubernetes-client/python/issues/411
34
- # Avoid creating thread pools in kubernetes api_client.
35
- _dummy_pool = Mock ()
36
- api_client .ThreadPool = lambda * args , ** kwargs : _dummy_pool
37
-
38
30
39
31
class K8s (object ):
40
32
'''
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ grpcio==1.16.0
4
4
jsonschema >= 2.6.0
5
5
keystoneauth1 == 2.21.0
6
6
keystonemiddleware == 4.9.1
7
- kubernetes >= 6 .0.0
7
+ kubernetes >= 9 .0.0
8
8
Paste >= 2.0.3
9
9
PasteDeploy >= 1.5.2
10
10
protobuf >= 3.4.0
You can’t perform that action at this time.
0 commit comments