Do not rely on `distro.imageOptions` having any size information, i.e. `Size` being `0`. Instead use `imageType.Size()` and the information in the blueprint customization to calculate the size. This makes the individual distro definitions idenpendent of the API entry points that currently calculate the size, e.g.: internal/cloudapi/v1/v1.go:PostCompose line 184 internal/cloudapi/v2/v2.go:PostCompose line 197 internal/kojiapi/server.go:PostCompose line 135 internal/weldr/api.go:composeHandler line 2289 |
||
|---|---|---|
| .. | ||
| distro.go | ||
| distro_test.go | ||
| distro_v2.go | ||