Skip to content

Commit aad4b97

Browse files
committed
Add kubernetes.client.apis as an alias to kubernetes.client.api
Reference: kubernetes-client#974 Signed-off-by: Nabarun Pal <[email protected]>
1 parent a08107f commit aad4b97

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

kubernetes/client/apis/__init__.py

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from __future__ import absolute_import
2+
import warnings
3+
4+
# flake8: noqa
5+
6+
# alias kubernetes.client.api package and print deprecation warning
7+
from kubernetes.client.api import *
8+
9+
warnings.filterwarnings('default', module='kubernetes.client.apis')
10+
warnings.warn(
11+
"The package kubernetes.client.apis is renamed and deprecated, use kubernetes.client.api instead (please note that the trailing s was removed).",
12+
DeprecationWarning
13+
)

0 commit comments

Comments
 (0)