Merge "Deprecate k8s fedora ironic driver"

This commit is contained in:
Zuul 2023-08-21 02:11:51 +00:00 committed by Gerrit Code Review
commit f241d15f93
2 changed files with 17 additions and 0 deletions

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