Skip to content

Commit

Permalink
[internal] Fix for long BlockDevices serial numbers support
Browse files Browse the repository at this point in the history
Signed-off-by: v.oleynikov <[email protected]>
  • Loading branch information
AleksZimin authored and duckhawk committed Dec 9, 2024
1 parent 0cd0dd3 commit 63a9aa6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions images/agent/src/pkg/controller/block_device.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 63a9aa6

Please sign in to comment.