Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cstor-restore): fixing restore api to return failure if cstorrest…
…ore is in invalid state (#1682) This PR updates the REST api for cstore restore to report failure if cstorrestore resource is in invalid state. There is one additional change in restore controller in cstor-pool-mgmt to ignore the update if cstorrestore CR is having state Done or Failed Following tests were executed with this change: Restart the cstor-pool pod when restore is in-progress state - outcome is restore failed Restart the cstor-pool pod before it process the cstorrestore CR - outcome is restore failed Restart the cstor-pool pod once it update the cstorrestore CR to init state - outcome is restore failed Restart the cstor-pool pod once the restore completes - outcome is cstorrestore status remains same Signed-off-by: mayank <mayank.patel@mayadata.io>
- Loading branch information