Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(localpv): handle case of BDC-BD taking longer time (#1262)
When a PVC with Local PV host device is triggered, Local PV provisioner will create BDC and waits for 60 seconds to get the BD attached. Post that it returns the control back to K8s. K8s will re-attempt to create a PV, and in the second iteration - the Local PV provisioner will check if the BDC was already created and will try to re-use it instead of creating another one. Creating another BDC, in the setup where BD/BDC takes longer will never result in PV getting created. Also, timing out and reporting the error to user will make the process intuitive when BD/BDC process is taking longer. Signed-off-by: kmova <[email protected]>
- Loading branch information