Closed divyenpatel closed 2 months ago
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: divyenpatel
The full list of commands accepted by this bot can be found here.
The pull request process is described here
closing this PR. as I see proper code fix is there in https://github.com/kubernetes-sigs/vsphere-csi-driver/pull/2888
What this PR does / why we need it: If policy usage CR creation fails, CSI Driver does not retry creating usage CR.
When user creates PVC on the namespace, we volume can not be created since policy usage CR is missing even when quota is assigned for the policy on the namespace. Only option for user is to restart the CSI Driver syncer container or re-assign policy on the namespace.
This PR is adding re-try mechanism to retry creating this critical CR for 5 minutes. After 5 minutes driver will be crashed if storage policy usage CR is not created , and stroagepolicyquota add event will be replayed and will again attempt to create storagepolicyusage CR.
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: In progress
Special notes for your reviewer:
Release note: