zfs-localpv/pkg/apis/openebs.io/zfs/v1alpha1
Pawan Prakash Sharma ae724ee096
feat(validation): adding validation for ZFSPV CR parameters (#66)
Validating few parameters for the ZFSVolume custom resource

- compression can be "on", "off", "lzjb", "gzip", "gzip-[1-9]", "zle" and "lz4"
- encryption can be "on", "off", "aes-128-ccm", "aes-192-ccm", "aes-256-ccm", "aes-128-gcm", "aes-192-gcm", and "aes-256-gcm"
- dedup can be "on" and "off"
- poolname can be string
- ownernodeid can be string
- thinprovision can be "yes" and "no"
- volumetype can be "DATASET" and "ZVOL"

Also added required fields needed to create ZFSVolume CR
- ownerNodeID
- poolname
- volumeType
- capacity


Signed-off-by: Pawan <pawan@mayadata.io>
2020-04-14 17:26:46 +05:30
..
doc.go feat(crd-gen): automate the CRDs generation with validations for APIs (#75) 2020-04-01 17:54:20 +05:30
register.go refactor(crd): move CR from openebs.io to zfs.openebs.io (#70) 2020-03-30 22:12:34 +05:30
zfssnapshot.go feat(crd-gen): automate the CRDs generation with validations for APIs (#75) 2020-04-01 17:54:20 +05:30
zfsvolume.go feat(validation): adding validation for ZFSPV CR parameters (#66) 2020-04-14 17:26:46 +05:30
zz_generated.deepcopy.go refactor(crd): move CR from openebs.io to zfs.openebs.io (#70) 2020-03-30 22:12:34 +05:30