Add kubernetes.client.apis as an alias to kubernetes.client.api
Reference: https://github.com/kubernetes-client/python/issues/974 Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
This commit is contained in:
parent
7f1667e5a2
commit
4cfbfd4e17
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
|
||||
)
|
||||
Loading…
Reference in New Issue
Block a user