503 Commits

Author SHA1 Message Date
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
Felix Matouschek
6b360aa377 hack/e2e-setup.sh: Update versions
Update versions:
  - kubectl to v1.28.1
  - CDI to v1.57.0
  - common-instancetypes to v0.3.2
  - CNAO to v0.89.0

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-09-06 11:32:37 +02:00
Felix Matouschek
e33b479326 inventory: Add create_groups option
This adds the create_groups option to the inventory, which allows to
control the creation of groups from labels on VirtualMachines. By
default it is disabled.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-09-05 15:56:46 +02:00
Felix Matouschek
100bcee082 inventory: Flatten created groups
Drop creation of the namespace_vmis_group as it is redundant.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-09-05 15:53:22 +02:00
Felix Matouschek
20a3534f37 Merge pull request #21 from guidograzioli/ansible_galaxy_workaround
Merge this manually to overcome failing CI.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-08-22 16:55:56 +02:00
Guido Grazioli
1291335ce8 change dependency build_install to ansible-galaxy install
Signed-off-by: Guido Grazioli <ggraziol@redhat.com>
2023-08-22 16:36:06 +02:00
Felix Matouschek
628955dd9d Merge pull request #20 from 0xFelix/drop-note
README.md: Drop note about supported collection for now

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-08-22 11:38:25 +02:00
Felix Matouschek
05045f64d0 README.md: Drop note about supported collection for now
Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-08-22 10:32:33 +02:00
kubevirt-bot
a0ae90f79e Merge pull request #16 from 0xFelix/update-ci
ci: Exclude py3.9 with Ansible milestone
2023-08-15 10:25:33 +02:00
Felix Matouschek
2f60ad7c69 ci: Exclude py3.9 with Ansible milestone
Python 3.9 is no longer supported by the latest Ansible milestone
version.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-08-14 15:01:31 +02:00
kubevirt-bot
0a134f6e01 Merge pull request #15 from guidograzioli/ci_docs_update
use antsibul sphinx ext, ansible pygments
2023-08-10 16:52:35 +02:00
Guido Grazioli
4174dbed0c use antsibul sphinx ext, ansible pygments
Signed-off-by: Guido Grazioli <ggraziol@redhat.com>
2023-08-10 16:37:27 +02:00
kubevirt-bot
d20333e270 Update changelog for release 1.0.0
Signed-off-by: kubevirt-bot <kubevirtbot@redhat.com>
1.0.0
2023-08-09 11:54:04 +00:00
kubevirt-bot
e614ff653b Merge pull request #14 from 0xFelix/bump
Bump version to 1.0.0
2023-08-09 13:46:02 +02:00
Felix Matouschek
6dda795ad2 Bump version to 1.0.0
Bump version to 1.0.0 for the initial release.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-08-09 13:31:46 +02:00
kubevirt-bot
081aca65ee Update changelog for release 0.1.2
Signed-off-by: kubevirt-bot <kubevirtbot@redhat.com>
0.1.2
2023-08-09 09:35:13 +00:00
kubevirt-bot
50d5b6db2c Merge pull request #13 from 0xFelix/bump
Bump to 0.1.2
2023-08-09 11:31:57 +02:00
Felix Matouschek
ee91bdb005 Bump to 0.1.2
Bump to 0.1.2 for testing purposes

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-08-09 11:16:05 +02:00
kubevirt-bot
8048a9e5cc Merge pull request #12 from 0xFelix/manual-workflows
release: Run other workflows explicitly
2023-08-09 09:39:53 +01:00
Felix Matouschek
c42749e9d1 fix: Use kubevirt-bot in release workflow
Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-08-09 10:14:01 +02:00
Felix Matouschek
6c3aad2f82 release: Run other workflows explicitly
To bypass restrictions on GitHub Actions run the docs and ci workflows
manually after creating a release. GitHub Actions does not trigger
other workflows from a workflow run if not using a personal access
token (PAT). By calling the workflows explicitly, it is possible to
work around this restriction without the need for a PAT.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-08-09 10:10:54 +02:00
kubevirt-bot
4a65be3b45 Update changelog for release 0.1.1
Signed-off-by: kubevirt-bot <kubevirtbot@redhat.com>
0.1.1
2023-08-07 14:28:58 +00:00
kubevirt-bot
915451aad1 Merge pull request #11 from guidograzioli/meta_runtime_fix
Meta runtime fix
2023-08-07 16:23:57 +02:00
Guido Grazioli
b0d7de20b9 fix meta/runtime ansible ver
Signed-off-by: Guido Grazioli <ggraziol@redhat.com>
2023-08-07 16:09:21 +02:00
Guido Grazioli
1e31be08e1 add rel details
Signed-off-by: Guido Grazioli <ggraziol@redhat.com>
2023-08-07 16:09:21 +02:00
kubevirt-bot
356df26074 Update changelog for release 0.1.1
Signed-off-by: kubevirt-bot <kubevirtbot@redhat.com>
2023-08-07 13:51:46 +00:00
kubevirt-bot
36fd506939 Merge pull request #10 from guidograzioli/prerel
Prerelease
2023-08-07 14:25:53 +02:00
Guido Grazioli
4ead9fabd2 update docs
Signed-off-by: Guido Grazioli <ggraziol@redhat.com>
2023-08-07 14:07:48 +02:00
Guido Grazioli
9c90dfc105 remove use of unnecessary pat in release wf
Signed-off-by: Guido Grazioli <ggraziol@redhat.com>
2023-08-07 14:07:48 +02:00
Guido Grazioli
0be08edb3b update github issue template
Signed-off-by: Guido Grazioli <ggraziol@redhat.com>
2023-08-07 14:07:48 +02:00
kubevirt-bot
cf33661ea1 Merge pull request #9 from guidograzioli/ci_update_and_bump
Bump to 0.1.1
2023-08-04 16:21:42 +02:00
Guido Grazioli
60695fd328 Bump to 0.1.1
CI: update integration.yml to final location
CI: silence the yaml-truthy linter rule
Signed-off-by: Guido Grazioli <ggraziol@redhat.com>
2023-08-04 15:59:48 +02:00
kubevirt-bot
6081c56444 Merge pull request #7 from guidograzioli/integration_tests
ci: integration tests
2023-08-04 15:53:29 +02:00
Guido Grazioli
198d885b8f ci: integration tests
Signed-off-by: Guido Grazioli <ggraziol@redhat.com>
2023-08-04 15:27:41 +02:00
kubevirt-bot
f5b8372a75 Merge pull request #8 from 0xFelix/rename
Rename collection to kubevirt.core
2023-08-03 13:11:28 +02:00
Felix Matouschek
38c76a9545 Rename collection to kubevirt.core
This replaces all occurences of the old kubernetes.core name.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-08-03 13:03:10 +02:00
kubevirt-bot
874003ed14 Merge pull request #6 from 0xFelix/it-pref-whitespace
kubevirt_vm: Prevent unnecessary whitespace
2023-07-18 16:51:51 +02:00
Felix Matouschek
0875abc080 kubevirt_vm: Prevent unnecessary whitespace
This removes the unnecessary whitespace from the rendered VirtualMachine
template and adds a unit test for it.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-07-18 16:08:01 +02:00
kubevirt-bot
472bd8d917 Merge pull request #4 from 0xFelix/dvt
kubevirt_vm: Allow to specify DataVolume templates
2023-07-18 16:01:58 +02:00
Felix Matouschek
bce4f17188 kubevirt_vm: Allow to specify DataVolume templates
By allowing to specify DataVolume templates VMs with persistent storage
can be created using the kubevirt_vm module.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-07-18 13:40:52 +02:00
Felix Matouschek
1e94c19ac4 e2e-setup: Add support for deploying CDI
Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-07-18 11:37:08 +02:00
kubevirt-bot
3f5e6d78d6 Merge pull request #3 from 0xFelix/vm-template-spec
kubevirt_vm: Allow to specify template spec
2023-07-18 11:36:36 +02:00
Felix Matouschek
6ba62f53e8 kubevirt_vm: Allow to specify template spec
By allowing to specify the template spec unnecessary abstraction is
avoided.

The following module args are replaced by the 'spec' arg:
  - termination_grace_period
  - interfaces
  - networks
  - volumes

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-07-18 11:31:32 +02:00
kubevirt-bot
47b20a0ef7 Merge pull request #1 from 0xFelix/it-pref-matchers
kubevirt_vm: Use {Instancetype,Preference}Matchers
2023-07-18 10:45:53 +02:00
Felix Matouschek
b0971aca37 kubevirt_vm: Use {Instancetype,Preference}Matchers
Use InstancetypeMatchers and PreferenceMatchers directly instead of
providing multiple arguments to prevent unnecessary abstraction.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-07-18 10:41:15 +02:00
kubevirt-bot
40972f61c2 Merge pull request #5 from 0xFelix/satisfy-linter
Fix issues found during linting
2023-07-17 21:31:51 +02:00
Felix Matouschek
9bc8d20ea6 inventory: Provide dummy classes to satisfy Ansible sanity
Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-07-17 15:01:36 +02:00
Felix Matouschek
68f5cc8e33 Update Ansible GitHub workflows
The workflows committed in the first commit were missing the
installation of required dependencies and other fixes.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-07-17 14:45:31 +02:00
Felix Matouschek
e1499d4aae Use correct author syntax
This updates the author syntax to satisfy the linter.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-07-17 14:12:14 +02:00
Felix Matouschek
7c347174ab Change LICENSE to GPLv3
Ansible collections are required to be licensed under the GPLv3.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2023-07-17 14:09:18 +02:00