diff options
author | ricolin <rico.lin@easystack.cn> | 2017-08-02 15:52:48 +0800 |
---|---|---|
committer | ricolin <rico.lin@easystack.cn> | 2018-02-07 16:50:34 +0800 |
commit | 20fb0efa112e64ed3c601b0b4e5853dc2c3c6891 (patch) | |
tree | 87e9e13bca6b4ae9632a52af71c522ed5fb15541 /hot/software-config/elements/heat-config-kubelet/install.d/hook-kubelet.py | |
parent | a7243bc0896a24e0d403589b852ba51ecb4ff2a0 (diff) | |
download | heat-templates-20fb0efa112e64ed3c601b0b4e5853dc2c3c6891.tar.gz |
Deprecate hooks in heat-templates
We already create repository `heat-agents` for hooks and will keep
maintain hooks there, so we should deprecate all hooks in
heat-templates and plan to remove it in futuer.
Change-Id: Ie2d89d5bab7db2bc6a2e171dc455098811519440
Diffstat (limited to 'hot/software-config/elements/heat-config-kubelet/install.d/hook-kubelet.py')
-rwxr-xr-x | hot/software-config/elements/heat-config-kubelet/install.d/hook-kubelet.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hot/software-config/elements/heat-config-kubelet/install.d/hook-kubelet.py b/hot/software-config/elements/heat-config-kubelet/install.d/hook-kubelet.py index eee08c1..6ef747a 100755 --- a/hot/software-config/elements/heat-config-kubelet/install.d/hook-kubelet.py +++ b/hot/software-config/elements/heat-config-kubelet/install.d/hook-kubelet.py @@ -20,6 +20,7 @@ import re import six import sys import time +import warnings try: import docker @@ -165,6 +166,9 @@ def wait_required_containers(client, log, def main(argv=sys.argv, sys_stdin=sys.stdin, sys_stdout=sys.stdout): + warnings.warn('This hook is deprecated, please use hooks from heat-agents ' + 'repository instead.', DeprecationWarning) + (log, deploy_stdout, deploy_stderr) = configure_logging() client = get_client(log) |