File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed
Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -448,3 +448,6 @@ if [[ -n "$MIRROR_IMAGES" || -z "$IP_STACK" || "$IP_STACK" = "v6" ]]; then
448448 # We're going to be using a locally modified release image
449449 export OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE=" ${LOCAL_REGISTRY_DNS_NAME} :${LOCAL_REGISTRY_PORT} /localimages/local-release-image:latest"
450450fi
451+
452+ # Defaults the variable to disable testing software RAID
453+ export TEST_SW_RAID=${TEST_SW_RAID:- true}
Original file line number Diff line number Diff line change @@ -664,3 +664,7 @@ set -x
664664
665665# Uncomment the following line to deploy the MCE operator, and to automatically import the current cluster as the hub cluster
666666# export AGENT_DEPLOY_MCE=true
667+
668+ # TEST_SW_RAID -
669+ # Enable testing of software RAID
670+ # export TEST_SW_RAID=true
Original file line number Diff line number Diff line change @@ -108,6 +108,17 @@ function create_cluster() {
108108 mkdir -p ${assets_dir} /openshift
109109 generate_assets
110110
111+ if [[ " $TEST_SW_RAID " == " true" ]] && [[ " $NUM_WORKERS " -gt 0 ]]; then
112+ for n in $( seq " $NUM_MASTERS " $( expr " $NUM_WORKERS " + " $NUM_MASTERS " - 1) ) ;
113+ do
114+ sed -i " /status/i \\
115+ raid: \n\
116+ softwareRAIDVolumes: \n\
117+ - level: \" 1\" \
118+ " ${assets_dir} /openshift/99_openshift-cluster-api_hosts-$n .yaml
119+ done
120+ fi
121+
111122 if [ -z " ${NTP_SERVERS} " ];
112123 then
113124 export NTP_SERVERS=" $PROVISIONING_HOST_EXTERNAL_IP "
You can’t perform that action at this time.
0 commit comments