turn on warning filter to print deprecation warning by default

This commit is contained in:
Haowei Cai 2019-11-11 14:07:57 -08:00
parent 9d29ac1ded
commit b3164930dd

View File

@ -5,6 +5,8 @@ import warnings
# 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