mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-03-26 19:03:16 +00:00
fix(inventory): Fix inventory source caching
Fix inventory source caching by separating the fetching of objects and populating the inventory. This way objects can be fetched from the K8S API or from a configured cached and the cache related parameters on the plugin now actually work. The inventory source cache was tested with the ansible.builtin.jsonfile cache plugin and 100k hosts (~2G JSON file). Though it took a noticeable amount of time for the inventory plugin to run it worked fine and no failures could be observed. Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -145,7 +145,10 @@ kubevirt.core
|
||||
/tests/output/
|
||||
/tests/integration/inventory
|
||||
/tests/integration/targets/inventory_kubevirt/all.yml
|
||||
/tests/integration/targets/inventory_kubevirt/cache_after.yml
|
||||
/tests/integration/targets/inventory_kubevirt/cache_before.yml
|
||||
/tests/integration/targets/inventory_kubevirt/empty.yml
|
||||
/tests/integration/targets/inventory_kubevirt/label.yml
|
||||
/tests/integration/targets/inventory_kubevirt/net.yml
|
||||
/tests/integration/targets/kubevirt_vm/files
|
||||
kubevirt-cache
|
||||
|
||||
Reference in New Issue
Block a user