Skip to content

Commit c7bd671

Browse files
committed
remove delete all of from handleDeletion
1 parent 0da8649 commit c7bd671

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

controllers/hcpvaultsecretsapp_controller.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -478,11 +478,6 @@ func (r *HCPVaultSecretsAppReconciler) handleDeletion(ctx context.Context, o *se
478478
return fmt.Errorf("failed to list secrets in namespace %s: %w", o.GetNamespace(), err)
479479
}
480480
removeFinalizers(ctx, r.Client, logger, &secrets)
481-
if err := r.DeleteAllOf(ctx, &secretsv1beta1.VaultDynamicSecret{},
482-
client.InNamespace(common.OperatorNamespace),
483-
client.MatchingLabels{helpers.LabelOwnerRefUID: string(o.GetUID())}); err != nil {
484-
return fmt.Errorf("failed to delete secrets in namespace %s: %w", o.GetNamespace(), err)
485-
}
486481
// then remove the finalizer from the HCPVaultSecretsApp and delete it
487482
if controllerutil.ContainsFinalizer(o, hcpVaultSecretsAppFinalizer) {
488483
logger.Info("Removing finalizer")

0 commit comments

Comments
 (0)