mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2026-02-02 15:45:13 +01:00
feat(block): adding block volume support for ZFSPV (#102)
This commit adds the support for creating a Raw Block Volume request using volumemode as block in PVC :-
```
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: block-claim
spec:
volumeMode: Block
storageClassName: zfspv-block
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
```
The driver will create a zvol for this volume and bind mount the block device at the given path.
Signed-off-by: Pawan <pawan@mayadata.io>
This commit is contained in:
parent
49dc99726b
commit
dd059a2f43
10 changed files with 274 additions and 10 deletions
|
|
@ -57,7 +57,20 @@ func zvolCreationTest() {
|
|||
By("Deleting storage class", deleteStorageClass)
|
||||
}
|
||||
|
||||
func blockVolCreationTest() {
|
||||
By("Creating default storage class", createStorageClass)
|
||||
By("creating and verifying PVC bound status", createAndVerifyBlockPVC)
|
||||
|
||||
By("Creating and deploying app pod", createDeployVerifyBlockApp)
|
||||
By("verifying ZFSVolume object", VerifyZFSVolume)
|
||||
By("verifying ZFSVolume property change", VerifyZFSVolumePropEdit)
|
||||
By("Deleting application deployment", deleteAppDeployment)
|
||||
By("Deleting pvc", deletePVC)
|
||||
By("Deleting storage class", deleteStorageClass)
|
||||
}
|
||||
|
||||
func volumeCreationTest() {
|
||||
By("Running dataset creation test", datasetCreationTest)
|
||||
By("Running zvol creation test", zvolCreationTest)
|
||||
By("Running block volume creation test", blockVolCreationTest)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue