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:
Nabarun Pal 2020-06-22 20:46:20 +05:30
parent e379ad2868
commit 9f880d8396
No known key found for this signature in database
GPG Key ID: 611D5079D826B150

View 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
)