kubevirt / csi-driver

KubeVirt CSI driver
Other
34 stars 25 forks source link

Implement storage snapshot mapping #106

Closed awels closed 2 months ago

awels commented 3 months ago

What this PR does / why we need it: Read the mapping from the driver-config ConfigMap. Use this mapping to determine if a snapshot can be created with the storage/volume snapshot class combination. If not possible return an error with a list of the possible snapshot classes.

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 #

Special notes for your reviewer:

Release note:

Use driver-config ConfigMap to map storage classes to volume snapshot classes
kubevirt-bot commented 2 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: davidvossel

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/kubevirt/csi-driver/blob/main/OWNERS)~~ [davidvossel] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment