mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 14:30:12 +01:00
feat(zfspv): pvc should be bound only if volume has been created.
The controller does not check whether the volume has been created or not and return successful. Which in turn binds the pvc to the pv. The PVC should not bound until corresponding zfs volume has been created. Now controller will check the ZFSVolume CR state to be "Ready" before returning successful. The CSI will retry the CreateVolume request when it will get a error reply and when the ZFS node agent creates the ZFS volume and sets the ZFSVolume CR state to be "Ready", the controller will return success for the CreateVolume Request and then PVC will be bound. Signed-off-by: Pawan <pawan@mayadata.io>
This commit is contained in:
parent
9118f56600
commit
25d1f1a413
13 changed files with 150 additions and 5 deletions
|
|
@ -32,6 +32,10 @@ spec:
|
|||
description: Size of the volume
|
||||
name: Size
|
||||
type: string
|
||||
- JSONPath: .status.state
|
||||
description: Status of the volume
|
||||
name: Status
|
||||
type: string
|
||||
- JSONPath: .spec.volblocksize
|
||||
description: volblocksize of volume
|
||||
name: volblocksize
|
||||
|
|
@ -216,6 +220,18 @@ spec:
|
|||
- poolName
|
||||
- volumeType
|
||||
type: object
|
||||
status:
|
||||
properties:
|
||||
state:
|
||||
description: State specifies the current state of the volume provisioning
|
||||
request. The state "Pending" means that the volume creation request
|
||||
has not processed yet. The state "Ready" means that the volume has
|
||||
been created and it is ready for the use.
|
||||
enum:
|
||||
- Pending
|
||||
- Ready
|
||||
type: string
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue