Limit label "velero.io/pvc-namespace-name" length to 63.

1. Limit label length.
2. Modify UT accordingly.
3. Remove unnecessary const variable.

Signed-off-by: Xun Jiang <jxun@vmware.com>
This commit is contained in:
Xun Jiang
2023-07-04 15:10:34 +08:00
parent 5171ab0dca
commit 7b4d4c7275
3 changed files with 10 additions and 6 deletions
-3
View File
@@ -83,9 +83,6 @@ const (
// The format is <namespace>/<name>.
PVCNamespaceNameLabel = "velero.io/pvc-namespace-name"
// DynamicPVRestoreLabel is the label key for dynamic PV restore
DynamicPVRestoreLabel = "velero.io/dynamic-pv-restore"
// ResourceUsageLabel is the label key to explain the Velero resource usage.
ResourceUsageLabel = "velero.io/resource-usage"
)