Deprecate k8s fedora ironic driver

Deprecate k8s fedora ironic driver as announced in the mailing list [1].

[1] https://lists.openstack.org/pipermail/openstack-discuss/2023-February/032371.html

Change-Id: Ifaae1a953b44d159aa249313d833cf7253d031a0
This commit is contained in:
Jake Yip 2023-05-08 23:21:15 +10:00
parent 11bcc17568
commit 05d9dd5cd1
2 changed files with 17 additions and 0 deletions

View File

@ -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,

View File

@ -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.