cozystack/internal/controller
Andrei Kvapil 3266a5514e
Get instance type when reconciling WorkloadMonitor (#1030)
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 -->
2025-06-11 12:55:42 +02:00
..
suite_test.go Move project from aenix-io to cozystack repository 2025-03-10 21:16:58 +01:00
system_helm_reconciler.go [platform] Fix deps for paas-hosted bundle 2025-06-09 12:36:32 +02:00
tenant_helm_reconciler.go [platform] add hr reconciler 2025-05-05 09:26:50 +03:00
workload_controller.go Fix virtual machine resource tracking 2025-04-29 15:22:46 +03:00
workload_controller_test.go Fix virtual machine resource tracking 2025-04-29 15:22:46 +03:00
workloadmonitor_controller.go Get instance type when reconciling WorkloadMonitor 2025-06-10 11:17:40 +03:00