Skip to content

Commit acfc409

Browse files
committed
HypervisorMaintenance: Fix transport from hypervisor to eviction
We actually want it the other way around. If there is a label on the node, it gets transported to the hypervisor and from there to the eviction.
1 parent 767fb51 commit acfc409

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/controller/hypervisor_maintenance_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ func (hec *HypervisorMaintenanceController) ensureEviction(ctx context.Context,
233233
}
234234

235235
// This also transports the label-selector, if set
236-
transportLabels(&eviction.ObjectMeta, &hypervisor.ObjectMeta)
236+
transportLabels(&hypervisor.ObjectMeta, &eviction.ObjectMeta)
237237

238238
if err = hec.Create(ctx, eviction); err != nil {
239239
return metav1.ConditionUnknown, fmt.Errorf("failed to create eviction due to %w", err)

0 commit comments

Comments
 (0)