Skip to content

Conversation

@deads2k
Copy link
Collaborator

@deads2k deads2k commented Jan 21, 2026

We found that may controllers weren't getting cleaned up. We need to find and fix that problem, but we also need to clean up the data we have. This adds a controller that cleans up ones that already escaped and will continue to do so. It works in a way that should scale for order of low tens of thousands of resources to scan in a reasonable timeframe.

Adds controller for deleting orphaned data. Relies on other PRs and needs testing.

/hold

Once
c23fb55
makes it to production, we can rely on the new cosmosUID being
predictable based on resourceID.  By doing this we're able to derive
resourceID which is important elsewhere.

Also eliminates cosmosUID since it is an unnessary field to store since
it is always derivable.
Since we migrated all the data in int, stg, and prod, the existing
fixtures no longer match. Update them all to match so we can continue
testing the database layer.
We found that may controllers weren't getting cleaned up. We need to
find and fix that problem, but we also  need to clean up the data we
have. This adds a controller that cleans up ones that already escaped
and will continue to do so.  It works in a way that should scale for
order of low tens of thousands of resources to scan in a reasonable
timeframe.
@deads2k deads2k force-pushed the controller-02-delete-full-orphan branch from dbe4979 to df53dea Compare January 21, 2026 12:57
@geoberle
Copy link
Collaborator

/lgtm

@openshift-ci
Copy link

openshift-ci bot commented Jan 23, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deads2k, geoberle

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants