From 63a9aa699587cbdf252f1a66cb23f2ee0eadb916 Mon Sep 17 00:00:00 2001 From: Aleksandr Zimin Date: Fri, 6 Dec 2024 01:28:40 +0300 Subject: [PATCH] [internal] Fix for long BlockDevices serial numbers support Signed-off-by: v.oleynikov --- images/agent/src/pkg/controller/block_device.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/images/agent/src/pkg/controller/block_device.go b/images/agent/src/pkg/controller/block_device.go index d86ebeb4..0bc85cfa 100644 --- a/images/agent/src/pkg/controller/block_device.go +++ b/images/agent/src/pkg/controller/block_device.go @@ -560,6 +560,8 @@ func ConfigureBlockDeviceLabels(blockDevice v1alpha1.BlockDevice) map[string]str } slug.Lowercase = false + slug.MaxLength = 63 + slug.EnableSmartTruncate = false lbls[internal.MetadataNameLabelKey] = slug.Make(blockDevice.ObjectMeta.Name) lbls[internal.HostNameLabelKey] = slug.Make(blockDevice.Status.NodeName) lbls[internal.BlockDeviceTypeLabelKey] = slug.Make(blockDevice.Status.Type)