Merge "Deprecate k8s fedora ironic driver"
This commit is contained in:
commit
f241d15f93
magnum/api/controllers/v1
releasenotes/notes
@ -272,6 +272,10 @@ class ClusterTemplatesController(base.Controller):
|
||||
"driver. Please migrate to the fedora_coreos driver. fedora_atomic "
|
||||
"driver will be removed in a future Magnum version.")
|
||||
|
||||
_fedora_ironic_deprecation_note = (
|
||||
"The fedora ironic driver is deprecated. "
|
||||
"The driver will be removed in a future Magnum version.")
|
||||
|
||||
_docker_swarm_deprecation_note = (
|
||||
"The swarm coe is deprecated as the fedora_atomic distro is EOL. "
|
||||
"Please migrate to using the kubernetes coe. "
|
||||
@ -437,6 +441,13 @@ class ClusterTemplatesController(base.Controller):
|
||||
DeprecationWarning)
|
||||
LOG.warning(self._fedora_atomic_deprecation_note)
|
||||
|
||||
if (cluster_template_dict['coe'] == 'kubernetes' and
|
||||
cluster_template_dict['cluster_distro'] == 'fedora' and
|
||||
cluster_template_dict['server_type'] == 'bm'):
|
||||
warnings.warn(self._fedora_ironic_deprecation_note,
|
||||
DeprecationWarning)
|
||||
LOG.warning(self._fedora_ironic_deprecation_note)
|
||||
|
||||
if (cluster_template_dict['coe'] == 'swarm' or
|
||||
cluster_template_dict['coe'] == 'swarm-mode'):
|
||||
warnings.warn(self._docker_swarm_deprecation_note,
|
||||
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
deprecations:
|
||||
- |
|
||||
Due to the lack of maintainers for the Fedora Kubernetes Ironic driver, it
|
||||
has been deprecated. Users are encouraged to use the Fedora CoreOS
|
||||
Kubernetes VM driver to create their Kubernetes clusters.
|
Loading…
x
Reference in New Issue
Block a user