Skip to content

feat(cmd): add cleanup safety guardrails with --yes flag#87

Merged
mrhillsman merged 1 commit into
mainfrom
feat/cleanup-safety-guardrails
May 24, 2026
Merged

feat(cmd): add cleanup safety guardrails with --yes flag#87
mrhillsman merged 1 commit into
mainfrom
feat/cleanup-safety-guardrails

Conversation

@mrhillsman

@mrhillsman mrhillsman commented May 24, 2026

Copy link
Copy Markdown
Contributor

Preview resources before deletion, prompt for confirmation on unscoped cleanups, and allow bypassing with --yes/-y or --run-id.

  • add PreviewCleanup unit tests
  • add PreviewCleanup for resource discovery without deletion
  • add --yes flag to cleanup calls for confirmation guardrails
  • expect "nothing to clean up" for idempotent cleanup test

Resolves #70

Preview resources before deletion, prompt for confirmation on unscoped
cleanups, and allow bypassing with --yes/-y or --run-id.

- add PreviewCleanup unit tests
- add PreviewCleanup for resource discovery without deletion
- add --yes flag to cleanup calls for confirmation guardrails
- expect "nothing to clean up" for idempotent cleanup test

Signed-off-by: Melvin Hillsman <mhillsma@redhat.com>
@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 requested a review from OchiengEd May 24, 2026 03:30
@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 24, 2026
@mrhillsman
mrhillsman merged commit 2d90ce1 into main May 24, 2026
3 of 4 checks passed
@mrhillsman
mrhillsman removed the request for review from OchiengEd May 24, 2026 04:05
@mrhillsman
mrhillsman deleted the feat/cleanup-safety-guardrails branch May 24, 2026 06:15
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.

[Feature]: Add cleanup safety guardrails for large or unscoped deletions

1 participant