From 89e2c3edb15da84a4be709c593d533f7dc493417 Mon Sep 17 00:00:00 2001 From: dbinnal-px Date: Thu, 21 Mar 2024 18:49:58 +0000 Subject: [PATCH] PB-6351: handling labels validation for dataexport CR for pvc name --- pkg/controllers/dataexport/reconcile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controllers/dataexport/reconcile.go b/pkg/controllers/dataexport/reconcile.go index 220a14738..751c6ffc6 100644 --- a/pkg/controllers/dataexport/reconcile.go +++ b/pkg/controllers/dataexport/reconcile.go @@ -769,7 +769,7 @@ func (c *Controller) stageSnapshotScheduled(ctx context.Context, dataExport *kdm annotations[backupObjectUIDKey] = backupUID annotations[pvcUIDKey] = pvcUID labels := make(map[string]string) - labels[pvcNameKey] = dataExport.Spec.Source.Name + labels[pvcNameKey] = utils.GetValidLabel(dataExport.Spec.Source.Name) name, namespace, _, err := snapshotDriver.CreateSnapshot( snapshotter.Name(snapName), snapshotter.PVCName(dataExport.Spec.Source.Name),