diff --git a/controllers/ibmpowervsmachine_controller.go b/controllers/ibmpowervsmachine_controller.go index 8ef99c060..20307c2bb 100644 --- a/controllers/ibmpowervsmachine_controller.go +++ b/controllers/ibmpowervsmachine_controller.go @@ -92,6 +92,7 @@ func (r *IBMPowerVSMachineReconciler) Reconcile(ctx context.Context, req ctrl.Re var ibmPowerVSImage *v1beta1.IBMPowerVSImage if ibmPowerVSMachine.Spec.ImageRef != nil { + ibmPowerVSImage = &v1beta1.IBMPowerVSImage{} ibmPowerVSImageName := client.ObjectKey{ Namespace: ibmPowerVSMachine.Namespace, Name: ibmPowerVSMachine.Spec.ImageRef.Name,