Skip to content

Commit

Permalink
Merge pull request #6 from jibudata/operator
Browse files Browse the repository at this point in the history
exclude pv and pvc for restore original ns
  • Loading branch information
hpjibu committed Jan 19, 2022
2 parents 3070890 + 0ba6eb7 commit 6671b71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/operation/velero_operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ func (o *Operation) AsyncRestoreNamespace(backupName string, veleroNamespace str
}
if srcNamespace == tgtNamespace {
excludedResources = append(excludedResources, "persistentvolumeclaims")
excludedResources = append(excludedResources, "persistentvolumes")
}
restore := &velero.Restore{
ObjectMeta: metav1.ObjectMeta{
Expand Down

0 comments on commit 6671b71

Please sign in to comment.