Skip to content

Commit faab9ac

Browse files
committed
fix(instance): check only l_ssd image for server-type compatibility
1 parent 1bb3dc4 commit faab9ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/namespaces/instance/v1/custom_server_create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ func validateImageServerTypeCompatibility(image *instance.Image, serverType *ins
579579
if serverType.VolumesConstraint.MaxSize == 0 {
580580
return nil
581581
}
582-
if image.RootVolume.Size > serverType.VolumesConstraint.MaxSize {
582+
if image.RootVolume.VolumeType == instance.VolumeVolumeTypeLSSD && image.RootVolume.Size > serverType.VolumesConstraint.MaxSize {
583583
return fmt.Errorf("image %s requires %s on root volume, but root volume is constrained between %s and %s on %s",
584584
image.ID,
585585
humanize.Bytes(uint64(image.RootVolume.Size)),

0 commit comments

Comments
 (0)