13 Commits

Author SHA1 Message Date
Felix Matouschek
cf64caee84 fix(ci): Exclude ansible-compat's new cache location
ansible-compat 25.0.0 now stores its cache in .ansible. Ignore this
location when running ansible-lint and in .gitignore.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2025-01-15 09:50:47 +01:00
Felix Matouschek
e98d9a48bd feat: Add kubevirt_vmi_info module
Add the kubevirt_vmi_info module which allows to fetch information about
VirtualMachineInstance(s).

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-08-19 08:22:24 +02:00
Felix Matouschek
713193510a kubevirt_vm_info: Run integration test in random namespace
Run the integration tests for kubevirt_vm_info in a random namespace
and cleanup after the tests finish.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-08-16 08:37:40 +02:00
Felix Matouschek
71ea312cfc kubevirt_vm: Run integration test in random namespace
Run the integration tests for kubevirt_vm in a random namespace
and cleanup after the tests finish.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-08-16 08:37:36 +02:00
Felix Matouschek
00690ebc4c inventory_kubevirt: Run integration test in random namespace
Run the integration tests for inventory_kubevirt in a random namespace
and cleanup after the tests finish.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-08-16 08:37:00 +02:00
Felix Matouschek
060ac97b68 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>
2024-07-12 10:32:24 +02:00
Felix Matouschek
d7d70125a7 chore: Add .vscode launch configs
Add vscode launch configs to debug the modules and the inventory plugin.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-06-27 15:44:21 +02:00
Felix Matouschek
ac589abf5e chore: Add vscode configuration
Add vscode configuration that allows to develop, test and debug the
collection.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-04-12 10:29:58 +02:00
Felix Matouschek
55a6acef5d chore: Add tox-ansible configuration
Add tox-ansible configuration that allows to run tests with all
required ansible and python versions. Add Makefile targets to make use
of it.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-04-12 10:29:54 +02:00
Felix Matouschek
e2d2da2670 chore: Add tox configuration
Add tox configuration that allows to build a venv for development and to
format source files. To make use of it add appropriate Makefile targets.

Drop unneeded requirements from requirements.txt and
test-requirements.txt and add needed requirements.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-04-12 10:23:38 +02:00
Felix Matouschek
1772f182e0 chore: Rework gitignore
Rework gitignore by combining all gitignore files and adding files
generated by running tests.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-03-20 10:19:13 +01:00
Felix Matouschek
a9fdfe49b7 galaxy.yaml: Update build_ignore
Ignore additional files we do not want to be part of the released
collection. Also ignore build artifacts in .gitignore.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-03-11 11:25:58 +01:00
Felix Matouschek
216df38df9 first commit
Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-07-14 10:30:20 +02:00