Skip to content

fix(resources): collect all deletion errors instead of bailing on first#111

Merged
mrhillsman merged 1 commit into
mainfrom
fix/102-collect-deletion-errors
May 28, 2026
Merged

fix(resources): collect all deletion errors instead of bailing on first#111
mrhillsman merged 1 commit into
mainfrom
fix/102-collect-deletion-errors

Conversation

@mrhillsman

@mrhillsman mrhillsman commented May 28, 2026

Copy link
Copy Markdown
Contributor

DeleteManagedSecrets and DeleteManagedServices returned immediately on the first non-NotFound deletion error, abandoning remaining resources. Now they continue attempting all deletions and return an aggregated error via errors.Join alongside the count of successful deletions.

Resolves #102

@exe-prow-github-app
exe-prow-github-app Bot requested a review from OchiengEd May 28, 2026 06:16
@exe-prow-github-app

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mrhillsman

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@exe-prow-github-app exe-prow-github-app Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 28, 2026
@mrhillsman
mrhillsman removed the request for review from OchiengEd May 28, 2026 06:16
DeleteManagedSecrets and DeleteManagedServices returned immediately on
the first non-NotFound deletion error, abandoning remaining resources.
Now they continue attempting all deletions and return an aggregated
error via errors.Join alongside the count of successful deletions.

Resolves #102

Signed-off-by: Melvin Hillsman <mhillsma@redhat.com>
@mrhillsman
mrhillsman force-pushed the fix/102-collect-deletion-errors branch from 6d711a0 to 4c25f20 Compare May 28, 2026 06:16
@mrhillsman
mrhillsman merged commit 9f1bd0c into main May 28, 2026
3 of 4 checks passed
@mrhillsman
mrhillsman deleted the fix/102-collect-deletion-errors branch May 28, 2026 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Tech Debt]: DeleteManagedSecrets/DeleteManagedServices bail on first error, leaving partial cleanup

1 participant