From ff6a067c8491128b7ed5c3473dff6ba35840cc8f Mon Sep 17 00:00:00 2001 From: Felix Matouschek Date: Wed, 10 Jul 2024 13:45:11 +0200 Subject: [PATCH 1/2] feat(inventory): Deprecate connections parameter Deprecate the connections parameter of the inventory plugin. For now this adds only a warning message while keeping the functionality. Signed-off-by: Felix Matouschek --- plugins/inventory/kubevirt.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/plugins/inventory/kubevirt.py b/plugins/inventory/kubevirt.py index 6573a21..02268d5 100644 --- a/plugins/inventory/kubevirt.py +++ b/plugins/inventory/kubevirt.py @@ -39,6 +39,11 @@ options: - Optional list of cluster connection settings. If no connections are provided, the default I(~/.kube/config) and active context will be used, and objects will be returned for all namespaces the active user is authorized to access. + deprecated: + removed_in: "3.0.0" + alternative: + - Split your connections into multiple configuration files and move parameters of each connection + to the configuration top level. type: list elements: dict suboptions: @@ -422,6 +427,12 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable): fetch_objects populates the inventory with every configured connection. """ if connections: + self.display.deprecated( + msg="The 'connections' parameter is deprecated and starting with version 2.0.0 of kubevirt.core supports only a single entry.", + version="3.0.0", + collection_name="kubevirt.core", + ) + if not isinstance(connections, list): raise KubeVirtInventoryException("Expecting connections to be a list.") From 463142c280dc84d5f95efde84f720c82a5aaa3e9 Mon Sep 17 00:00:00 2001 From: Felix Matouschek Date: Wed, 10 Jul 2024 13:49:17 +0200 Subject: [PATCH 2/2] chore: Prepare release 1.5.0 Signed-off-by: Felix Matouschek --- changelogs/changelog.yaml | 4 ++++ galaxy.yml | 2 +- plugins/inventory/kubevirt.py | 8 +++----- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index 6a0124f..358cc4d 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -101,3 +101,7 @@ releases: - 91.yaml - 95.yaml release_date: '2024-05-29' + 1.5.0: + changes: + release_summary: Support for stopped VMs, deprecation of the 'connections' parameter and many cleanups. + release_date: '2024-07-10' diff --git a/galaxy.yml b/galaxy.yml index 7a4ac7f..6e0030c 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,7 +1,7 @@ --- namespace: kubevirt name: core -version: "1.4.0" +version: "1.5.0" readme: README.md authors: - KubeVirt Project (kubevirt.io) diff --git a/plugins/inventory/kubevirt.py b/plugins/inventory/kubevirt.py index 02268d5..190cfbe 100644 --- a/plugins/inventory/kubevirt.py +++ b/plugins/inventory/kubevirt.py @@ -39,11 +39,9 @@ options: - Optional list of cluster connection settings. If no connections are provided, the default I(~/.kube/config) and active context will be used, and objects will be returned for all namespaces the active user is authorized to access. - deprecated: - removed_in: "3.0.0" - alternative: - - Split your connections into multiple configuration files and move parameters of each connection - to the configuration top level. + - This parameter is deprecated. Split your connections into multiple configuration files and move + parameters of each connection to the configuration top level. + - Deprecated in version C(1.5.0), will be removed in version C(3.0.0). type: list elements: dict suboptions: