Skip to content

Commit

Permalink
fixed a bug relating the cleanup of external syncs
Browse files Browse the repository at this point in the history
  • Loading branch information
droot committed Jun 6, 2023
1 parent 74d3dcc commit 53a82bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rollouts/controllers/remotesync_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ func (r *RemoteSyncReconciler) deleteExternalResources(ctx context.Context, remo
}

logger.Info("Deleting external resource")
err = dynCl.Resource(gvr).Namespace(getExternalSyncNamespace(remotesync)).Delete(ctx, remotesync.Name, metav1.DeleteOptions{})
err = dynCl.Resource(gvr).Namespace(getExternalSyncNamespace(remotesync)).Delete(ctx, getExternalSyncName(remotesync), metav1.DeleteOptions{})
if err != nil && !apierrors.IsNotFound(err) {
return err
}
Expand Down

0 comments on commit 53a82bd

Please sign in to comment.