cleanup(inventory): Drop support for multiple connections

The support for connections to multiple clusters in the inventory
plugin is dropped to better align with user expectations and how other
inventories work. If inventories of multiple clusters are needed the
inventory can be run multiple times with different configurations.
This also helps to clean up the code and make it simpler.

For now this adds a compatibility helper so that configurations with a
single connection entry remain supported and a warning is emitted.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
This commit is contained in:
Felix Matouschek
2024-07-03 11:45:21 +02:00
parent 2e9d6cec15
commit fd9c30103d
12 changed files with 394 additions and 394 deletions

View File

@@ -1,7 +1,6 @@
---
plugin: kubevirt.core.kubevirt
connections:
- namespaces:
- default
network_name: bridge-network
label_selector: app=test
namespaces:
- default
network_name: bridge-network
label_selector: app=test

View File

@@ -1,7 +1,6 @@
---
plugin: kubevirt.core.kubevirt
connections:
- namespaces:
- default
network_name: bridge-network
kube_secondary_dns: true
namespaces:
- default
network_name: bridge-network
kube_secondary_dns: true

View File

@@ -1,6 +1,5 @@
---
plugin: kubevirt.core.kubevirt
connections:
- namespaces:
- default
use_service: true
namespaces:
- default
use_service: true