When the WorkloadMonitor is reconciled and child Workload objects are created, they will now get additional labels in the `workloads.cozystack.io` namespace, containing metadata about the workload. This particular commit checks if a pod targeted by a Workload is owned by a VirtualMachineInstance (i.e. it launches a KubeVirt VMI) and, if so, gets the VMI instance type and puts it in the `kubevirt-vmi-instance-type` label. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Workload objects created for Pods now include additional labels extracted from their owner references, specifically for VirtualMachineInstance resources. - If a VirtualMachineInstance has a relevant annotation, its instance type is now reflected as a label on the associated Workload. - **Chores** - Updated and added several dependencies to improve compatibility and maintainability. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|---|---|---|
| .. | ||
| suite_test.go | ||
| system_helm_reconciler.go | ||
| tenant_helm_reconciler.go | ||
| workload_controller.go | ||
| workload_controller_test.go | ||
| workloadmonitor_controller.go | ||