
- Dynamically load drivers using stevedore - Changed the entry points to reference drivers instead of template definitions - Implement Create and update driver operations Change-Id: I5c3259404c796e1935c872cf3109ffecae3cee02 Partially-Implements: blueprint bay-drivers
47 lines
1.8 KiB
Python
47 lines
1.8 KiB
Python
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
# use this file except in compliance with the License. You may obtain a copy
|
|
# of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
from oslo_config import cfg
|
|
|
|
from magnum.i18n import _
|
|
|
|
cluster_group = cfg.OptGroup(name='cluster',
|
|
title='Options for Cluster configuration')
|
|
|
|
cluster_def_opts = [
|
|
cfg.StrOpt('etcd_discovery_service_endpoint_format',
|
|
default='https://discovery.etcd.io/new?size=%(size)d',
|
|
help=_('Url for etcd public discovery endpoint.'),
|
|
deprecated_group='bay'),
|
|
cfg.ListOpt('enabled_definitions',
|
|
deprecated_for_removal=True,
|
|
deprecated_reason=_('This configuration option is no longer '
|
|
'used. Installing a new driver enables '
|
|
'it for use automatically.'),
|
|
default=['magnum_vm_atomic_k8s', 'magnum_bm_fedora_k8s',
|
|
'magnum_vm_coreos_k8s', 'magnum_vm_atomic_swarm',
|
|
'magnum_vm_ubuntu_mesos'],
|
|
help=_('Enabled cluster definition entry points.'),
|
|
deprecated_group='bay'),
|
|
]
|
|
|
|
|
|
def register_opts(conf):
|
|
conf.register_group(cluster_group)
|
|
conf.register_opts(cluster_def_opts, group=cluster_group)
|
|
|
|
|
|
def list_opts():
|
|
return {
|
|
cluster_group: cluster_def_opts
|
|
}
|