cli: use nodeGroups when setting default disk size for QEMU

This commit is contained in:
Malte Poll 2023-08-02 10:42:18 +02:00 committed by Malte Poll
parent 0c20ccb477
commit 7dfac1f758

View File

@ -108,7 +108,10 @@ func createConfigWithAttestationVariant(provider cloudprovider.Provider, rawProv
// set a lower default for QEMU's state disk
if provider == cloudprovider.QEMU {
conf.StateDiskSizeGB = 10
for groupName, group := range conf.NodeGroups {
group.StateDiskSizeGB = 10
conf.NodeGroups[groupName] = group
}
}
if provider == cloudprovider.Unknown {