Skip to content

Commit fb4d0f5

Browse files
committed
Hypervisor: Drop FieldOwner from Create
The controller would become then the owner of all fields, including the defaults in spec, but they should just be the defaults.
1 parent d526639 commit fb4d0f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/controller/hypervisor_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func (hv *HypervisorController) Reconcile(ctx context.Context, req ctrl.Request)
147147
return ctrl.Result{}, fmt.Errorf("failed setting controller reference: %w", err)
148148
}
149149

150-
if err := hv.Create(ctx, hypervisor, k8sclient.FieldOwner(HypervisorControllerName)); err != nil {
150+
if err := hv.Create(ctx, hypervisor); err != nil {
151151
return ctrl.Result{}, err
152152
}
153153

0 commit comments

Comments
 (0)