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:
parent
3df67e9adb
commit
d0877e68dc
7 changed files with 231 additions and 148 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue