Closed shalini-b closed 4 months ago
/ok-to-test
/approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: divyenpatel, shalini-b, xing-yang
The full list of commands accepted by this bot can be found here.
The pull request process is described here
What this PR does / why we need it: While upgrading to 8.0U3, creation of StoragePolicyUsage CR might get skipped for namespaces with no volumes prior to upgrade if for some reason we loose the StoragePolicyQuota Add event. This PR ensures we create StoragePolicyUsage CR for every SC, existing or new.
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #Testing done: Tested the code in a single supervisor setup. On syncer init, we see the
policyQuotaCRAdded
handler creating the StoragePolicyUsage for namespaces with no PVCs as well. FullSync tries to create it at the same time but gets aninstance already exists
error.Tried deleting a StoragePolicyUsage instance on a namespace with no PVCs and confirmed that fullSync will re-create the CR. Logs:
Special notes for your reviewer:
Release note: