mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-07-28 11:02:43 +00:00
Update CRDs and CLI to support in-place restore (#10038)
Update CRDs(Restore, DataDownload, PodVolumeRestore) and restore create CLI to support in-place restore Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
This commit is contained in:
@@ -98,7 +98,13 @@ func (b *RestoreBuilder) ExcludedResources(resources ...string) *RestoreBuilder
|
||||
|
||||
// ExistingResourcePolicy sets the Restore's resource policy.
|
||||
func (b *RestoreBuilder) ExistingResourcePolicy(policy string) *RestoreBuilder {
|
||||
b.object.Spec.ExistingResourcePolicy = velerov1api.PolicyType(policy)
|
||||
b.object.Spec.ExistingResourcePolicy = velerov1api.ResourcePolicyType(policy)
|
||||
return b
|
||||
}
|
||||
|
||||
// ExistingVolumeDataPolicy sets the Restore's volume data policy.
|
||||
func (b *RestoreBuilder) ExistingVolumeDataPolicy(policy string) *RestoreBuilder {
|
||||
b.object.Spec.ExistingVolumeDataPolicy = velerov1api.VolumeDataPolicyType(policy)
|
||||
return b
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user