fix(kubernetes): temporary solution for updated k8s python client
This commit is contained in:
parent
07d6fe7442
commit
9129813244
1478 changed files with 422354 additions and 2 deletions
13
kubernetes/client/apis/__init__.py
Normal file
13
kubernetes/client/apis/__init__.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
from __future__ import absolute_import
|
||||
import warnings
|
||||
|
||||
# flake8: noqa
|
||||
|
||||
# alias kubernetes.client.api package and print deprecation warning
|
||||
from kubernetes.client.api import *
|
||||
|
||||
warnings.filterwarnings('default', module='kubernetes.client.apis')
|
||||
warnings.warn(
|
||||
"The package kubernetes.client.apis is renamed and deprecated, use kubernetes.client.api instead (please note that the trailing s was removed).",
|
||||
DeprecationWarning
|
||||
)
|
Reference in a new issue