You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today, stale state object deletion mechanism works only if a single CR instance exists.
e.g it will work for NicClusterPolicy CR where a state(s) (and its objects) exists at most once in the cluster
It will not work for CRs such as MacVlanNetwork where multiple instances exists each will instantiate their own state(s) (and its objects)
we should add a check for owner ref of the owning CR in the state generated object and only delete stale objects which are owned by the specific CR instance during reconcile.
Note: today handling of stale reosurces of a CR is not performed for *Network CRs as they dont contain multiple states.
the deletion of the CR will remove its related resources, which is for now good enough.
however for consistency and future proof, we would like to support deleting stale resources for multi-instance CRs.
Work Item:
add check in stateSkel.deleteStateRelatedObjects for owned object before deleting.
The text was updated successfully, but these errors were encountered:
Today, stale state object deletion mechanism works only if a single CR instance exists.
e.g it will work for NicClusterPolicy CR where a state(s) (and its objects) exists at most once in the cluster
It will not work for CRs such as MacVlanNetwork where multiple instances exists each will instantiate their own state(s) (and its objects)
we should add a check for owner ref of the owning CR in the state generated object and only delete stale objects which are owned by the specific CR instance during reconcile.
Note: today handling of stale reosurces of a CR is not performed for *Network CRs as they dont contain multiple states.
the deletion of the CR will remove its related resources, which is for now good enough.
however for consistency and future proof, we would like to support deleting stale resources for multi-instance CRs.
Work Item:
add check in
stateSkel.deleteStateRelatedObjects
for owned object before deleting.The text was updated successfully, but these errors were encountered: