Skip to content

Commit

Permalink
Add kubernetes.client.apis as an alias to kubernetes.client.api
Browse files Browse the repository at this point in the history
Reference: #974

Signed-off-by: Nabarun Pal <[email protected]>
  • Loading branch information
palnabarun committed Oct 14, 2020
1 parent ca17df6 commit 1460b1f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions kubernetes/client/apis/__init__.py
Original file line number Diff line number Diff line change
@@ -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
)

0 comments on commit 1460b1f

Please sign in to comment.