Commit Graph

252 Commits

Author SHA1 Message Date
Felix Matouschek
9e2fc74ccb ci: Fix non failing integration tests
Remove { } from runme.sh files to avoid failures being masked.
Re-add install of ansible.posix to have the
ansible.posix.profile_task callback available.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-03-01 14:50:33 +01:00
Felix Matouschek
92aeaa7215 cleanup: Use default shell when deploying KubeVirt
The default shell (bash -e {0}) should suffice to deploy KubeVirt.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-02-29 17:13:42 +01:00
Felix Matouschek
6075886c4a fix: Fix release workflow failing because of non-zero exit
Fix the failing release workflow by adding a call to true after grepping
for the hopefully nonexistent release tag.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-02-29 17:13:03 +01:00
kubevirt-bot
e454272e53 Merge pull request #47 from 0xFelix/bump-version
chore: Bump collection version to 1.2.0
2024-02-29 16:58:58 +01:00
Felix Matouschek
9797021880 chore: Bump collection version to 1.2.0
Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-02-29 16:44:07 +01:00
kubevirt-bot
52cb5e94d8 Merge pull request #46 from 0xFelix/add-shellcheck
ci: Run shellcheck in CI linter job
2024-02-29 16:10:57 +01:00
kubevirt-bot
29516d3bfd Merge pull request #45 from 0xFelix/misc-cleanups
Misc cleanups
2024-02-29 15:58:57 +01:00
kubevirt-bot
c9a7b6a818 Merge pull request #43 from 0xFelix/update-requirements
cleanup: Update requirements throughout the project
2024-02-29 15:56:57 +01:00
kubevirt-bot
dc8d38433b Merge pull request #42 from 0xFelix/update-readme
chore: Update README.md
2024-02-29 15:54:57 +01:00
kubevirt-bot
735cddbe15 Merge pull request #41 from 0xFelix/cleanup-to-dict
cleanup: Remove __resource_field_to_dict workaround from inventory
2024-02-29 15:52:57 +01:00
Felix Matouschek
2e561f6b04 ci: Run shellcheck in CI linter job
Install and run shellcheck in the CI linter job. Lint all files matching
'*.sh' in the tree.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-02-29 15:37:03 +01:00
Felix Matouschek
57e953d347 fix: Use correct KubeVirt project name
Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-02-29 14:13:25 +01:00
Felix Matouschek
55fb9b94b5 chore: Bump docs copyright year
Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-02-29 14:13:20 +01:00
Felix Matouschek
69f7699c08 chore: Remove unneeded sanity test ignore files
Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-02-29 14:06:31 +01:00
Felix Matouschek
49638c31b5 chore: Run black formatter on project files
Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-02-29 14:06:16 +01:00
Felix Matouschek
44e1c0a719 cleanup: Update requirements throughout the project
Update the requirements throughout the project to be in sync and to
reflect the current state of dependencies.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-02-29 14:03:19 +01:00
Felix Matouschek
e0cde14f30 cleanup: Remove __resource_field_to_dict workaround from inventory
Since the minimum required version of the kubernetes python client was
updated to a version not requiring this workaround anymore, the
workaround is replaced with the to_dict() method found in the new
client.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-02-29 13:56:33 +01:00
Felix Matouschek
65f7c27487 chore: Update README.md
Update README.md to include all modules of the collection and keep
module descriptions in sync.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-02-29 13:32:37 +01:00
kubevirt-bot
4429ac8c03 Merge pull request #39 from 0xFelix/bump-version-e2e
Bump e2e-setup.sh version and ensure compatibility with KubeVirt >=1.1.0
2024-02-29 13:08:57 +01:00
kubevirt-bot
cebd4cf6ec Merge pull request #40 from 0xFelix/yamllint
ci: Add yamllint to CI linter job
2024-02-29 13:06:57 +01:00
Felix Matouschek
77ece9d466 ci: Add yamllint to CI linter job
This adds yamllint to the CI linter job and sets the maximum line
length to 140 like in kubevirt/kubevirt.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-02-29 11:41:49 +01:00
kubevirt-bot
3e310dc1ba Merge pull request #38 from 0xFelix/cleanup-actions
.github: Cleanup actions
2024-02-29 11:40:57 +01:00
Felix Matouschek
44fce1cc31 fix: Ensure compatibility with KubeVirt >=1.1.0
Ensure compatibility with KubeVirt >=1.1.0 by monkey patching
kubernetes.core to handle apis of the format a/b/c and requiring
kubernetes>=28.1.0.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-02-29 11:21:17 +01:00
Felix Matouschek
fa9183c21a hack: Bump e2e-setup.sh version
Bump the software versions defined in hack/e2e-setup.sh to the latest
ones and sync version installed of kind in github integration tests
with e2e-setup.sh. Update the CentOS 9 Stream preference name used in
the tests to the new name in common-instancetypes v0.4.0.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-02-29 09:47:50 +01:00
Felix Matouschek
f92c500de4 .github: Cleanup actions
Cleanup the .github actions:

- Use the same syntax and/or commands where possible
- Drop unnecessary parameters and steps / commands
- In the all-green job ensure that all CI jobs passed
- Update the naming of jobs
- Review permissions and grant write permission only where
  necessary (repo is set to read-only by default)
- Review installed dependencies (try to fix the failing docs job)
- Run yamllint and fix findings
- Replace deprecated set-output syntax

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-02-28 17:04:54 +01:00
kubevirt-bot
ebe6f830e7 Merge pull request #37 from 0xFelix/python-versions
.github: Update tested Ansible and Python versions
2024-02-28 09:50:55 +01:00
Felix Matouschek
b719edf5da .github: Update tested Ansible and Python versions
Use Python 3.9 - 3.12 and Ansible 2.14 - 2.16, devel and milestone to run
tests of the collection. Use the latest stable python version in test setups
where sensible. Instead of using the integration.yml workflog from main
use it from the same commit as the test runs instead.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-02-28 09:14:23 +01:00
kubevirt-bot
9ad43a9677 Merge pull request #36 from 0xFelix/update-actions
.github: Bump versions of all used actions
2024-02-27 16:54:55 +01:00
Felix Matouschek
205ef04954 .github: Bump versions of all used actions
Bump the versions of all used actions to the latest stable version and
try to use the same config across files and defaults where sensible.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-02-27 16:40:33 +01:00
kubevirt-bot
3dda5fbce6 Merge pull request #35 from 0xFelix/cleanups
Cleanup the collection
2024-02-26 17:26:54 +01:00
Felix Matouschek
74f4a48ac1 Pin python version
Pin the supported python version in tests/config.yaml and mention it in
README.md.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-02-26 17:04:19 +01:00
Felix Matouschek
bb132b1682 Move test .kubeconfig into CI setup
Inline the creation of a test .kubeconfig into the CI setup.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-02-26 16:59:03 +01:00
Felix Matouschek
6ee5a9c7c9 ansible-lint: Groom the .ansible-lint file
- Enable production profile
- Remove excludes no longer necessary
- Try to not skip any tests

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-02-26 16:31:56 +01:00
kubevirt-bot
638ba40818 Merge pull request #32 from guidograzioli/minimum_ansible_ver
Set minimum ansible-core>=14
2023-11-29 10:27:13 +01:00
Guido Grazioli
44d8a4f64a make sanity and unit matrix the same
Signed-off-by: Guido Grazioli <ggraziol@redhat.com>
2023-11-29 09:39:58 +01:00
Guido Grazioli
0586d91943 integration tests: drop EOL versions
Signed-off-by: Guido Grazioli <ggraziol@redhat.com>
2023-11-14 12:03:06 +01:00
Guido Grazioli
8f8e7eda6e update sanity/unit tests matrix
Signed-off-by: Guido Grazioli <ggraziol@redhat.com>
2023-11-14 11:58:06 +01:00
Guido Grazioli
91e2a27987 update minimum ansible-core to 2.14+
linter

Signed-off-by: Guido Grazioli <ggraziol@redhat.com>
2023-11-14 11:42:08 +01:00
kubevirt-bot
6a7192ff7f Merge pull request #29 from guidograzioli/linter_ignores_changelog
Add changelog to lint ignores
2023-09-21 11:46:23 +02:00
Guido Grazioli
63b774520e add changelog to lint ignores
Signed-off-by: Guido Grazioli <ggraziol@redhat.com>
2023-09-21 11:25:58 +02:00
Felix Matouschek
f313d73864 Merge pull request #28 from 0xFelix/bump-1.1.0
Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-09-21 10:48:45 +02:00
Felix Matouschek
6d209f5597 changelog.yaml: Fix indentation for linter
Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-09-21 10:47:01 +02:00
Felix Matouschek
1a824ed0be Merge pull request #27 from 0xFelix/bump-1.1.0
Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-09-21 10:11:34 +02:00
Felix Matouschek
b6e0acc6a8 Drop old changelog fragments
They were consumed in the 1.1.0 release.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-09-21 10:10:25 +02:00
kubevirt-bot
0d2b67aad5 Update changelog for release 1.1.0
Signed-off-by: kubevirt-bot <kubevirtbot@redhat.com>
1.1.0
2023-09-21 06:44:16 +00:00
Felix Matouschek
dcb3de0275 Merge pull request #26 from 0xFelix/bump-1.1.0
Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-09-21 08:11:46 +02:00
Felix Matouschek
1f1adace47 Bump version to 1.1.0
Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-09-21 08:10:19 +02:00
kubevirt-bot
d1318db8db Merge pull request #24 from 0xFelix/info_module
kubevirt_vm_info: Add info module for VirtualMachines
2023-09-07 15:57:28 +02:00
kubevirt-bot
73bf388fd7 Merge pull request #23 from 0xFelix/flatten-groups
Flatten groups and allow to control creation of additional groups
2023-09-07 15:55:29 +02:00
Felix Matouschek
6486766b11 kubevirt_vm_info: Add info module for VirtualMachines
This adds the kubevirt_vm_info module, which returns the same results as
the kubevirt_vm module, but is limited to read-only functionality.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-09-06 13:04:07 +02:00