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: kubernetes-client#974

Signed-off-by: Nabarun Pal <[email protected]>
  • Loading branch information
palnabarun committed Nov 13, 2020
1 parent 4a8b0f7 commit e0b0ec8
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 e0b0ec8

Please sign in to comment.