Commit Graph

4 Commits

Author SHA1 Message Date
Felix Matouschek
effb8140b6 chore(formatting): Run make format
Black changed it's mind about whitespace in some files.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2026-01-19 12:08:43 +01:00
Felix Matouschek
117694ab1e fix(changed): Fix change detection temporarily
Fix the change detection of kubernetes.core temporarily by monkey
patching the service.diff_objects function. This fix should be removed
once it was merged into kubernetes.core. A dummy _patch_diff_objects
function is introduced to satisfy ansible linters.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2025-04-28 15:06:22 +02:00
Felix Matouschek
a9d7fa22aa feat(modules): Add hidden_fields argument
Add the hidden_fields argument to kubevirt_vm and kubevirt_{vm,vmi}_info
which allows to hide and ignore certain fields in the returned definition
of a VM or VMI. By default this argument is set to ignore changes to the
kubemacpool.io/transaction-timestamp annotation and managed fields, which
may change at any time and cause the modules to return a changed status
although nothing has changed other than their values.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2025-04-28 14:39:42 +02:00
Felix Matouschek
cd270e271b cleanup(info): Extract execute_module
Extract the execute_module function from the kubevirt_vm_info module to
make it available for other modules.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
2024-08-19 08:22:02 +02:00