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. Signed-off-by: Timofei Larkin <lllamnyp@gmail.com> |
||
|---|---|---|
| .. | ||
| suite_test.go | ||
| tenant_helm_reconciler.go | ||
| workload_controller.go | ||
| workload_controller_test.go | ||
| workloadmonitor_controller.go | ||