Skip to content

Commit

Permalink
removed claimref from translate
Browse files Browse the repository at this point in the history
  • Loading branch information
facchettos committed May 14, 2024
1 parent 0e6e0de commit 3ea94a9
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pkg/controllers/resources/persistentvolumes/translate.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,6 @@ func (s *persistentVolumeSyncer) translateUpdate(ctx context.Context, vPv *corev
updated.Spec.Capacity = vPv.Spec.Capacity
}

if !s.useFakePersistentVolumes {
// if the virtual claimref is removed, we should also remove it in the
// updated
if vPv.Spec.ClaimRef == nil {
updated = translator.NewIfNil(updated, pPv)
updated.Spec.ClaimRef = nil
}
}

if !equality.Semantic.DeepEqual(pPv.Spec.AccessModes, vPv.Spec.AccessModes) {
updated = translator.NewIfNil(updated, pPv)
updated.Spec.AccessModes = vPv.Spec.AccessModes
Expand Down

0 comments on commit 3ea94a9

Please sign in to comment.