From 779c9f65c811fc0bd49595d336ddab45992b168b Mon Sep 17 00:00:00 2001 From: "jiasen.lin" Date: Mon, 20 Mar 2017 12:33:04 +0800 Subject: [PATCH] Deprecate CDH-5.5.0 Change-Id: I30737fb02d08cd99cbbf02f6630049d2171749ba --- releasenotes/notes/deprecate-cdh_5_5-0da56b562170566f.yaml | 3 +++ sahara/plugins/cdh/plugin.py | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/deprecate-cdh_5_5-0da56b562170566f.yaml diff --git a/releasenotes/notes/deprecate-cdh_5_5-0da56b562170566f.yaml b/releasenotes/notes/deprecate-cdh_5_5-0da56b562170566f.yaml new file mode 100644 index 00000000..e42d2eb8 --- /dev/null +++ b/releasenotes/notes/deprecate-cdh_5_5-0da56b562170566f.yaml @@ -0,0 +1,3 @@ +--- +features: + - Version 5.5.0 of Cloudera plugin is deprecated. diff --git a/sahara/plugins/cdh/plugin.py b/sahara/plugins/cdh/plugin.py index e218ab63..800fec6a 100644 --- a/sahara/plugins/cdh/plugin.py +++ b/sahara/plugins/cdh/plugin.py @@ -35,10 +35,12 @@ class CDHPluginProvider(p.ProvisioningPluginBase): def get_labels(self): default = {'enabled': {'status': True}, 'stable': {'status': True}} result = {'plugin_labels': copy.deepcopy(default)} + deprecated = {'enabled': {'status': True}, + 'deprecated': {'status': True}} result['version_labels'] = { '5.9.0': copy.deepcopy(default), '5.7.0': copy.deepcopy(default), - '5.5.0': copy.deepcopy(default), + '5.5.0': copy.deepcopy(deprecated), } return result