mirror of
https://github.com/openshift/community.okd.git
synced 2026-03-26 19:03:14 +00:00
Deprecate the openshift inventory plugin (#186)
* Deprecate the openshift inventory plugin Signed-off-by: Alina Buzachis <abuzachis@redhat.com> * Fix indentation Signed-off-by: Alina Buzachis <abuzachis@redhat.com> * Update docs Signed-off-by: Alina Buzachis <abuzachis@redhat.com> --------- Signed-off-by: Alina Buzachis <abuzachis@redhat.com>
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
deprecated_features:
|
||||
- openshift - the ``openshift`` inventory plugin has been deprecated and will be removed in release 4.0.0 (https://github.com/ansible-collections/kubernetes.core/issues/31).
|
||||
@@ -17,6 +17,13 @@ plugin_routing:
|
||||
modules:
|
||||
k8s_auth:
|
||||
redirect: community.okd.openshift_auth
|
||||
inventory:
|
||||
openshift:
|
||||
deprecation:
|
||||
removal_version: 4.0.0
|
||||
warning_text: >-
|
||||
The openshift inventory plugin has been deprecated and
|
||||
will be removed in release 4.0.0.
|
||||
action:
|
||||
k8s:
|
||||
redirect: kubernetes.core.k8s_info
|
||||
|
||||
@@ -17,6 +17,13 @@ DOCUMENTATION = '''
|
||||
- Groups by cluster name, namespace, namespace_services, namespace_pods, namespace_routes, and labels
|
||||
- Uses openshift.(yml|yaml) YAML configuration file to set parameter values.
|
||||
|
||||
deprecated:
|
||||
removed_in: 4.0.0
|
||||
why: |
|
||||
As discussed in U(https://github.com/ansible-collections/kubernetes.core/issues/31), we decided to
|
||||
remove the openshift inventory plugin in release 4.0.0.
|
||||
alternative: "Use M(kubernetes.core.k8s_info) and M(ansible.builtin.add_host) instead."
|
||||
|
||||
options:
|
||||
plugin:
|
||||
description: token that ensures this is a source file for the 'openshift' plugin.
|
||||
@@ -141,6 +148,9 @@ class InventoryModule(K8sInventoryModule):
|
||||
self.check_kubernetes_collection()
|
||||
super(InventoryModule, self).fetch_objects(connections)
|
||||
|
||||
self.display.deprecated("The 'openshift' inventory plugin has been deprecated and will be removed in release 4.0.0",
|
||||
version='4.0.0', collection_name='community.okd')
|
||||
|
||||
if connections:
|
||||
if not isinstance(connections, list):
|
||||
raise K8sInventoryException("Expecting connections to be a list.")
|
||||
|
||||
Reference in New Issue
Block a user