From 0a1dc65e7a129f304548067d6c6352c50f6ac9d2 Mon Sep 17 00:00:00 2001 From: sakshisharma84 Date: Mon, 20 Nov 2023 16:59:53 -0500 Subject: [PATCH] deleting checksum entry in delete workflow (#14) --- controllers/manifest_controller.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controllers/manifest_controller.go b/controllers/manifest_controller.go index 36e036d9..8d241cea 100644 --- a/controllers/manifest_controller.go +++ b/controllers/manifest_controller.go @@ -100,6 +100,9 @@ func (r *ManifestReconciler) Reconcile(ctx context.Context, req ctrl.Request) (c return ctrl.Result{}, err } + // delete checksum entry + delete(checkSum, req.Name) + // Remove the finalizer from the list and update it. controllerutil.RemoveFinalizer(existing, addonFinalizerName) if err := r.Update(ctx, existing); err != nil {