mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-11-22 15:10:22 +00:00
[PR #1240/cb00cf3c backport][stable-5] Address stale deprecations (#1246)
* Address stale deprecations (#1240)
* chore: update deprecation for wait_timeout
* chore: update deprecation for return_code
* docs(changelogs): add stale deprecations to changelogs
* docs: ignore pylint deprecation warnings
* chore: update deprecation for merge_type
* docs: update changelogs for merge_type
* docs: ignore more pylint deprecation warnings
(cherry picked from commit cb00cf3c9e)
* fix: remove unnecessary ignore statements
---------
Co-authored-by: Don Naro <dnaro@redhat.com>
This commit is contained in:
co-authored by
Don Naro
parent
feb44ae16a
commit
66ec4758f0
@@ -183,7 +183,7 @@ options:
|
||||
wait_timeout:
|
||||
description:
|
||||
- Timeout when wait option is enabled (helm2 is a number of seconds, helm3 is a duration).
|
||||
- The use of I(wait_timeout) to wait for kubernetes commands to complete has been deprecated and will be removed after 2022-12-01.
|
||||
- The use of I(wait_timeout) to wait for kubernetes commands to complete has been deprecated and will be removed in version 7.0.0. Use O(timeout) instead.
|
||||
type: str
|
||||
timeout:
|
||||
description:
|
||||
@@ -839,6 +839,14 @@ def main():
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
||||
# Add deprecation warning for wait_timeout
|
||||
if module.params.get("wait_timeout") is not None:
|
||||
module.deprecate(
|
||||
"The 'wait_timeout' parameter is deprecated and will be removed in version 7.0.0. Use 'timeout' instead.",
|
||||
version="7.0.0",
|
||||
collection_name="kubernetes.core",
|
||||
)
|
||||
|
||||
if not IMP_YAML:
|
||||
module.fail_json(msg=missing_required_lib("yaml"), exception=IMP_YAML_ERR)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user