Adding labels support to Storm
Adding support to labels to the Storm plugin as well as marking storm version 0.9.2 as deprecated. Change-Id: If58ddce1324341da48fb1d1d3da3d456316c1d10
This commit is contained in:
parent
edde55febc
commit
55dc2d8dc2
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
deprecations:
|
||||||
|
- Storm version 0.9.2 is deprecated.
|
@ -13,6 +13,8 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
import copy
|
||||||
|
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
import six
|
import six
|
||||||
import yaml
|
import yaml
|
||||||
@ -50,8 +52,20 @@ class StormProvider(p.ProvisioningPluginBase):
|
|||||||
_("This plugin provides an ability to launch Storm "
|
_("This plugin provides an ability to launch Storm "
|
||||||
"cluster without any management consoles."))
|
"cluster without any management consoles."))
|
||||||
|
|
||||||
|
def get_labels(self):
|
||||||
|
default = {'enabled': {'status': True}, 'stable': {'status': True}}
|
||||||
|
deprecated = {'enabled': {'status': True},
|
||||||
|
'deprecated': {'status': True}}
|
||||||
|
result = {'plugin_labels': copy.deepcopy(default)}
|
||||||
|
result['version_labels'] = {
|
||||||
|
'1.1.0': copy.deepcopy(default),
|
||||||
|
'1.0.1': copy.deepcopy(default),
|
||||||
|
'0.9.2': copy.deepcopy(deprecated),
|
||||||
|
}
|
||||||
|
return result
|
||||||
|
|
||||||
def get_versions(self):
|
def get_versions(self):
|
||||||
return ['0.9.2', '1.0.1']
|
return ['0.9.2', '1.0.1', '1.1.0']
|
||||||
|
|
||||||
def get_configs(self, storm_version):
|
def get_configs(self, storm_version):
|
||||||
return c_helper.get_plugin_configs()
|
return c_helper.get_plugin_configs()
|
||||||
|
Loading…
Reference in New Issue
Block a user