Skip to content

Commit

Permalink
Correct the clusterDataProtection for protectePVC
Browse files Browse the repository at this point in the history
Fixes: #1419
Signed-off-by: Annaraya Narasagond <[email protected]>
  • Loading branch information
Annaraya-Narasagond authored and ShyamsundarR committed Jun 13, 2024
1 parent d3b1b8c commit 1cfa268
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controllers/vrg_volrep.go
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,9 @@ func (v *VRGInstance) isArchivedAlready(pvc *corev1.PersistentVolumeClaim, log l
// Upload PV to the list of S3 stores in the VRG spec
func (v *VRGInstance) uploadPVandPVCtoS3Stores(pvc *corev1.PersistentVolumeClaim, log logr.Logger) (err error) {
if v.isArchivedAlready(pvc, log) {
v.log.Info("PV cluster data already protected for PVC", "PVC", pvc.Name)
msg := fmt.Sprintf("PV cluster data already protected for PVC %s", pvc.Name)
v.updatePVCClusterDataProtectedCondition(pvc.Namespace, pvc.Name,
VRGConditionReasonUploaded, msg)

return nil
}
Expand Down

0 comments on commit 1cfa268

Please sign in to comment.