Upstream IBM VPC File storage provider#4138
Conversation
|
Hi @GeraFD14. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@arnongilboa @awels @arnongilboa from your previous comments:
Lets continue this discussion on slack.
I've added the new provisioner keys for vTPM SC, please help validating last commit and let me know if I need to change anything else
I'll continue with this and will correct the PR ASAP |
Initial commit to upstream required configuration for IVM VPC File storage driver. Added the storage capability: vpc.file.csi.ibm.io. Added dynamic minimum disk (PVC) calculation for dp2 IBM profiles Signed-off-by: GeraFD14 <gera.fd14@outlook.com>
Made corrections from Arnon comments, deleted unused code and create separated capabilities for dp2 and rfs profiles. Signed-off-by: GeraFD14 <gera.fd14@outlook.com>
Added capabilities keys for vTPM StorageClasses (for dp2 and rfs), this storage class requires RWO. Signed-off-by: GeraFD14 <gera.fd14@outlook.com>
|
There has been no activity on this PR for 45 days. What you can do:
/lifecycle stale |
|
/remove-lifecycle stale |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
| // getIBMVPCFileDP2MinimumSize calculates the minimum PVC size for IBM VPC File Storage DP2 profile | ||
| // based on the IOPS parameter using a table lookup | ||
| // Reference: https://cloud.ibm.com/docs/vpc?topic=vpc-file-storage-profiles&interface=ui#dp2-profile | ||
| func getIBMVPCFileDP2MinimumSize(sc *storagev1.StorageClass) (string, bool) { |
There was a problem hiding this comment.
@gera-fuentes does requesting a pvc size below the minimum result in an error or an auto roundup (to min size)?
There was a problem hiding this comment.
@noamasu requesting a pvc size below the minimum results in an error right now
There was a problem hiding this comment.
why don't we have some operator reconcile the storage class with a parameter/annotation that advertises the min size
There was a problem hiding this comment.
@akalenyu they can add an optional "roundup" param in the storage class, so if you set "roundup: true", it will do the roundup logic in the CSI driver. wdyt?
There was a problem hiding this comment.
@arnongilboa @noamasu @akalenyu I have removed the IBM's specific logic for the minimum size annotation; we are going to update the provider to do the size round up instead.
Signed-off-by: GeraFD14 <gera.fd14@outlook.com>
Signed-off-by: GeraFD14 <gera.fd14@outlook.com>
Replaces #4123
What this PR does / why we need it: Need to upstream IBM VPC File Storage Provider into CDI
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes https://redhat.atlassian.net/browse/CNV-84991
Special notes for your reviewer: Adding
vpc.file.csi.ibm.ioprovider including the dynamic SIZE/IOPS required relation based on https://cloud.ibm.com/docs/vpc?topic=vpc-file-storage-profiles&interface=ui#dp2-profileRelease note: