ibm-spectrum-scale-csi icon indicating copy to clipboard operation
ibm-spectrum-scale-csi copied to clipboard

SC can set min PV size and condition for MAX PV Size limit

Open badri-pathak opened this issue 1 year ago • 2 comments

Pull request checklist


Pull request type

Please check the type of change your PR introduces:

  • [ ] Bugfix
  • [x] Feature Enhancement
  • [ ] Test Automation
  • [ ] Code Refactoring (no functional changes, no api changes)
  • [ ] Build related changes
  • [ ] Community Operator listing
  • [ ] Other (please describe):

What is the current behavior?

What is the new behavior?

  • PV size higher than the scale-allowed size(999999999999999Ki) is not allowed.
  • (Optional) Storage class can be configured to set min PV size. If PV requested with lesser value than the SC limit, then minSize of the SC will be used. apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: ibm-spectrum-scale-csi-fileset namespace: ibm-spectrum-scale-csi-driver provisioner: spectrumscale.csi.ibm.com parameters: volBackendFs: "fs1" pvMinSize: 3Gi reclaimPolicy: Delete

How risky is this change?

  • [ ] Small, isolated change
  • [x] Medium, requires regression testing
  • [ ] Large, requires functional and regression testing

badri-pathak avatar May 02 '24 20:05 badri-pathak

Image: quay.io/badri_pathak/ibm-spectrum-scale-csi-driver:pv_minsize_requirement_v3

badri-pathak avatar May 02 '24 20:05 badri-pathak

This issue will be handled in this PR: https://github.com/IBM/ibm-spectrum-scale-csi/issues/800

badri-pathak avatar May 02 '24 20:05 badri-pathak