mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 06:20:11 +01:00
fix(restore): adding support to restore in an encrypted pool (#292)
Encrypted pool does not allow the volume to be pre created for the restore purpose. Here changing the design to do the restore first and then create the ZFSVolume object which will bind the volume already created while doing restore. Signed-off-by: Pawan <pawan@mayadata.io>
This commit is contained in:
parent
77e722989c
commit
6ec49df225
7 changed files with 375 additions and 13 deletions
|
|
@ -29,6 +29,7 @@ type ZFSRestore struct {
|
|||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ObjectMeta `json:"metadata,omitempty"` // set name to restore name + volume name + something like csp tag
|
||||
Spec ZFSRestoreSpec `json:"spec"`
|
||||
VolSpec VolumeInfo `json:"volSpec,omitempty"`
|
||||
// +kubebuilder:validation:Required
|
||||
// +kubebuilder:validation:Enum=Init;Done;Failed;Pending;InProgress;Invalid
|
||||
Status ZFSRestoreStatus `json:"status"`
|
||||
|
|
|
|||
|
|
@ -154,6 +154,7 @@ func (in *ZFSRestore) DeepCopyInto(out *ZFSRestore) {
|
|||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
out.Spec = in.Spec
|
||||
out.VolSpec = in.VolSpec
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue