Merge "Add groups field for plugins"

This commit is contained in:
Jenkins 2015-03-05 11:49:53 +00:00 committed by Gerrit Code Review
commit db74673e4f
2 changed files with 12 additions and 1 deletions

View File

@ -14,6 +14,9 @@ licenses: ['Apache License Version 2.0']
authors: ['Specify author or company name']
# A link to the plugin's page
homepage: 'https://github.com/stackforge/fuel-plugins'
# Specify a group which your plugin implements, possible options:
# network, storage, storage::cinder, storage::glance, hypervisor
groups: []
# The plugin is compatible with releases in the list
releases:

View File

@ -35,7 +35,8 @@ class SchemaV2(BaseSchema):
'licenses',
'authors',
'homepage',
'releases'],
'releases',
'groups'],
'properties': {
'name': {
'type': 'string',
@ -48,6 +49,13 @@ class SchemaV2(BaseSchema):
'fuel_version': self.list_of_strings,
'licenses': self.list_of_strings,
'authors': self.list_of_strings,
'groups': {'type': 'array', 'uniqueItems': True, 'items':
{'enum':
['network',
'storage',
'storage::cinder',
'storage::glance',
'hypervisor']}},
'homepage': {'type': 'string'},
'releases': {
'type': 'array',