mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-11-22 15:10:22 +00:00
Add a deprecation notice for ENABLE_TURBO_MODE (#1242)
* Add a deprecation notice for ENABLE_TURBO_MODE * minor fix * fix(turbo): ensure deprecation warning reaches user and skip turbo on unsupported ansible-core Move the ENABLE_TURBO_MODE deprecation warning to module import time, since AnsibleTurboModule.__init__() exits the process before returning, making the previous per-instance deprecate() call unreachable. Also skip turbo mode on ansible-core >= 2.19.0, where cloud.common is not supported and the import succeeding could otherwise fail later with an unrelated traceback, and warn instead of silently falling back when cloud.common is not installed. Assisted-by: Claude Sonnet 5 * docs(turbo): clarify that turbo mode is ignored on ansible-core 2.19+ Turbo mode is now bypassed with a warning rather than failing on unsupported ansible-core, so drop the "may lead to fails" wording from the README note and the matching statement in the turbo mode guide. Assisted-by: Claude Opus 5 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
c098ecc8c8
commit
031bc475fa
@@ -0,0 +1,7 @@
|
||||
---
|
||||
deprecated_features:
|
||||
- Ansible Turbo mode (``ENABLE_TURBO_MODE``) has been deprecated and will be removed in release 8.0.0, as it depends on the ``cloud.common`` collection, which is being retired (https://github.com/ansible-collections/kubernetes.core/pull/1242).
|
||||
bugfixes:
|
||||
- Ansible Turbo mode - ignore ``ENABLE_TURBO_MODE`` on ansible-core 2.19.0 and later, where the ``cloud.common`` collection is not supported, and fall back to the standard ``AnsibleModule`` instead of failing with ``byte indices must be integers or slices, not str`` (https://github.com/ansible-collections/kubernetes.core/pull/1242).
|
||||
minor_changes:
|
||||
- k8s lookup - warn when ``ENABLE_TURBO_MODE`` is set but the ``cloud.common`` collection is not installed, instead of silently falling back to the standard lookup base (https://github.com/ansible-collections/kubernetes.core/pull/1242).
|
||||
Reference in New Issue
Block a user