mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2026-02-02 15:45:13 +01:00
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>
This commit is contained in:
parent
fbd4812642
commit
ae724ee096
12 changed files with 2206 additions and 342 deletions
|
|
@ -17,7 +17,7 @@ set -e
|
|||
DST_REPO="$GOPATH/src/github.com/openebs/zfs-localpv"
|
||||
|
||||
function checkGitDiff() {
|
||||
if [[ `git diff --shortstat | wc -l` != 0 ]]; then echo "Some files got changed after $1";printf "\n";git diff --stat;printf "\n"; exit 1; fi
|
||||
if [[ `git diff --shortstat | wc -l` != 0 ]]; then echo "Some files got changed after $1";printf "\n";git diff;printf "\n"; exit 1; fi
|
||||
}
|
||||
|
||||
#make golint-travis
|
||||
|
|
@ -29,6 +29,12 @@ rc=$?; if [[ $rc != 0 ]]; then echo "make kubegen failed"; exit $rc; fi
|
|||
checkGitDiff "make kubegen"
|
||||
printf "\n"
|
||||
|
||||
echo "Running : make manifests"
|
||||
make manifests
|
||||
rc=$?; if [[ $rc != 0 ]]; then echo "make manifests failed"; exit $rc; fi
|
||||
checkGitDiff "make manifests"
|
||||
printf "\n"
|
||||
|
||||
./buildscripts/test-cov.sh
|
||||
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue