From 4f9ceaa750fe3dfb88b3ec4a337cbe6a30611d6a Mon Sep 17 00:00:00 2001 From: Mat Kowalski Date: Tue, 25 May 2021 09:20:18 +0200 Subject: [PATCH] NO-ISSUE Add VM_EXTRADISKS_LIST and VM_EXTRADISKS_SIZE This PR adds the ability to configure VM_EXTRADISKS_LIST and VM_EXTRADISKS_SIZE that are required by the Assisted Service to deploy the Local Storage Operator. Configuration of the extra disks is automatically picked by the script so that `storageClassDevices` in the `LocalVolume` manifest is filled correctly with all the additional drives and does not require a manual modification. Co-authored-by: Lisa Rashidi-Ranjbar --- assisted_deployment.sh | 19 ++++++++++++++++--- config_example.sh | 10 ++++++++++ vm_setup_vars.yml | 2 ++ 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/assisted_deployment.sh b/assisted_deployment.sh index dafab1269..595e155c7 100755 --- a/assisted_deployment.sh +++ b/assisted_deployment.sh @@ -60,15 +60,28 @@ spec: logLevel: Normal managementState: Managed storageClassDevices: - - devicePaths: - - /dev/sdb - - /dev/sdc +$(storage_devices_config) storageClassName: assisted-service volumeMode: Filesystem EOCR } +function storage_devices_config() { + if [ ! -z "${VM_EXTRADISKS_LIST}" ]; then +cat <