cloudapi: Add partitioning_mode support to the API

This adds a 'partitioning_mode' field that can be set to 'auto-lvm',
'lvm' or 'raw'. It defaults to 'auto-lvm'.
This commit is contained in:
Brian C. Lane 2023-09-15 15:05:04 -07:00 committed by Ondřej Budai
parent 3df67e9adb
commit d0877e68dc
7 changed files with 231 additions and 148 deletions

View file

@ -218,6 +218,12 @@ func (h *apiHandlers) PostCompose(ctx echo.Context) error {
// Set Subscription from the compose request
imageOptions.Subscription = request.GetSubscription()
// Set PartitioningMode from the compose request
imageOptions.PartitioningMode, err = request.GetPartitioningMode()
if err != nil {
return err
}
// Set OSTree options from the image request
imageOptions.OSTree, err = ir.GetOSTreeOptions()
if err != nil {