Skip to content

Commit

Permalink
fixup! Machine e2e test with bring your own VPC (linode#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbang-akamai committed Feb 9, 2024
1 parent 3e4b62d commit 80e39ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controller/linodevpc_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ func (r *LinodeVPCReconciler) reconcile(
r.Recorder.Event(vpcScope.LinodeVPC, corev1.EventTypeWarning, string(failureReason), err.Error())
}

// Always close the scope when exiting this function so we can persist any LinodeMachine changes.
// Always close the scope when exiting this function so we can persist
// any LinodeVPC changes. This ignores any resource not found errors
// when reconciling deletions.
if patchErr := vpcScope.Close(ctx); patchErr != nil && utilerrors.FilterOut(patchErr, apierrors.IsNotFound) != nil {
logger.Error(patchErr, "failed to patch LinodeVPC")

Expand Down

0 comments on commit 80e39ad

Please sign in to comment.