Skip to content

Commit

Permalink
Merge pull request #350 from portworx/PB-6351
Browse files Browse the repository at this point in the history
PB-6351: handling labels validation for dataexport CR for pvc name
  • Loading branch information
dbinnal-px authored Mar 22, 2024
2 parents 94bc704 + 89e2c3e commit 8440bba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/dataexport/reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 8440bba

Please sign in to comment.