From 3394d79fbd4c86564066f1a5a866dc740db54193 Mon Sep 17 00:00:00 2001 From: Mateus Oliveira Date: Mon, 4 Dec 2023 17:07:49 -0300 Subject: [PATCH] fixup! fix: Restore type enum validation Signed-off-by: Mateus Oliveira --- pkg/apis/velero/v1/constants.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pkg/apis/velero/v1/constants.go b/pkg/apis/velero/v1/constants.go index 60fbc12fc9..7eaab86fa7 100644 --- a/pkg/apis/velero/v1/constants.go +++ b/pkg/apis/velero/v1/constants.go @@ -16,12 +16,6 @@ limitations under the License. package v1 -type VeleroResourceUsage string - -const ( - VeleroResourceUsageDataUploadResult VeleroResourceUsage = "DataUpload" -) - const ( // DefaultNamespace is the Kubernetes namespace that is used by default for // the Velero server and API objects. @@ -56,6 +50,8 @@ const ( BackupRepositoryTypeRestic string = "restic" BackupRepositoryTypeKopia string = "kopia" + VeleroResourceUsageDataUploadResult = "DataUpload" + // Labels // BackupNameLabel is the label key used to identify a backup by name.