mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-05 04:55:22 +00:00
clarify VolumeSnapshotClass error for mismatched driver/provisioner
Signed-off-by: weeix <weeix@users.noreply.github.com>
This commit is contained in:
@@ -447,8 +447,13 @@ func GetVolumeSnapshotClassForStorageClass(
|
||||
return &vsClass, nil
|
||||
}
|
||||
return nil, fmt.Errorf(
|
||||
"failed to get VolumeSnapshotClass for provisioner %s, ensure that the desired VolumeSnapshot class has the %s label or %s annotation",
|
||||
provisioner, velerov1api.VolumeSnapshotClassSelectorLabel, velerov1api.VolumeSnapshotClassKubernetesAnnotation)
|
||||
"failed to get VolumeSnapshotClass for provisioner %s: "+
|
||||
"ensure that the desired VolumeSnapshotClass has the %s label or %s annotation, "+
|
||||
"and that its driver matches the StorageClass provisioner",
|
||||
provisioner,
|
||||
velerov1api.VolumeSnapshotClassSelectorLabel,
|
||||
velerov1api.VolumeSnapshotClassKubernetesAnnotation,
|
||||
)
|
||||
}
|
||||
|
||||
// IsVolumeSnapshotClassHasListerSecret returns whether a volumesnapshotclass has a snapshotlister secret
|
||||
|
||||
Reference in New Issue
Block a user