Skip to content

Commit

Permalink
keep PVC labels and annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
BeryJu committed Oct 22, 2022
1 parent 213c134 commit 01b8e57
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/migrator/destination.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ func (m *Migrator) GetDestinationPVCTemplate(sourcePVC *v1.PersistentVolumeClaim
}
destPVC := &v1.PersistentVolumeClaim{
ObjectMeta: metav1.ObjectMeta{
Name: m.SourcePVCName,
Namespace: m.DestNamespace,
Name: m.SourcePVCName,
Namespace: m.DestNamespace,
Labels: sourcePVC.Labels,
Annotations: sourcePVC.Annotations,
},
Spec: v1.PersistentVolumeClaimSpec{
AccessModes: m.GetDestPVCAccessModes(sourcePVC.Spec.AccessModes),
Expand Down

0 comments on commit 01b8e57

Please sign in to comment.