Skip to content

Commit

Permalink
ignore not found error on successful cluster delete
Browse files Browse the repository at this point in the history
  • Loading branch information
aamgayle committed Oct 16, 2023
1 parent 3afb354 commit 30c1162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/keyvault/ingress_secret_provider_class.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (i *IngressSecretProviderClassReconciler) Reconcile(ctx context.Context, re
if len(spc.Labels) != 0 && manifests.HasTopLevelLabels(spc.Labels) {
logger.Info("removing secret provider class for ingress")
err = i.client.Delete(ctx, spc)
return result, err
return result, client.IgnoreNotFound(err)
}

return result, nil
Expand Down

0 comments on commit 30c1162

Please sign in to comment.