mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 06:20:11 +01:00
feat(backup,restore): adding validation for backup and restore
Added a schema validation for backup and restore CR. Also validating the server address in the backup/restore controller. Validating the server address as : ^([0-9]+.[0-9]+.[0-9]+.[0-9]+:[0-9]+)$ which is : <any number>.<any number>.<any number>.<any number>:<any number> Here we are validating just the format of the IP, not validating that IP should be correct which will be little more complex. In any case if IP is not correct, the zfs send will fail, so no need to do complex validation to validate the correct IP and port. Signed-off-by: Pawan <pawan@mayadata.io>
This commit is contained in:
parent
5ea411ad05
commit
26968b5394
7 changed files with 62 additions and 15 deletions
1
changelogs/unreleased/221-pawanpraka1
Normal file
1
changelogs/unreleased/221-pawanpraka1
Normal file
|
|
@ -0,0 +1 @@
|
|||
adding validation for backup and restore
|
||||
Loading…
Add table
Add a link
Reference in a new issue