From 1cfa2686ebc3960a9094fe0927dca2a08a264914 Mon Sep 17 00:00:00 2001 From: Annaraya Narasagond Date: Wed, 12 Jun 2024 22:34:54 -0700 Subject: [PATCH] Correct the clusterDataProtection for protectePVC Fixes: #1419 Signed-off-by: Annaraya Narasagond --- controllers/vrg_volrep.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controllers/vrg_volrep.go b/controllers/vrg_volrep.go index 8ccd6ff9b..1c600da19 100644 --- a/controllers/vrg_volrep.go +++ b/controllers/vrg_volrep.go @@ -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 }