Skip to content

Conversation

@leelavg
Copy link
Contributor

@leelavg leelavg commented Feb 9, 2026

when a resource is deleted it gets recreated due to a cached copied and there is no other way for our existing machinery to distinguish the resource between recreation and user intention, we use finalizer to catch the intention and clean them up.

this is in unison with hub not distributing resources marked for deletion.

@openshift-ci
Copy link

openshift-ci bot commented Feb 9, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: leelavg

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

@openshift-ci openshift-ci bot added the approved label Feb 9, 2026
@leelavg
Copy link
Contributor Author

leelavg commented Feb 9, 2026

Depends on ocs-operator/pull/3686
will be testing and adding correct rbac.

when a resource is deleted it gets recreated due to a cached copied and
there is no other way for our existing machinery to distinguish the
resource between recreation and user intention, we use finalizer to
catch the intention and clean them up.

this is in unison with hub not distributing resources marked for
deletion.

Signed-off-by: Leela Venkaiah G <lgangava@ibm.com>
Signed-off-by: Leela Venkaiah G <lgangava@ibm.com>
@leelavg
Copy link
Contributor Author

leelavg commented Feb 9, 2026

Tested:

  1. Created a custom storageclass and it got added to StorageConsumer
  2. client-op added finalizer to this SC
  3. Deleted the SC, this is removed by storageconsumer cr and by next heartbeat removed from cluster

Note:
Even without finalizers update verb the code is working, however in user environments they could enable strict admission rules and so added that rbac in addition to patch.

Working on regression in deletion.

@leelavg
Copy link
Contributor Author

leelavg commented Feb 9, 2026

/hold

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.

1 participant