Skip to content

Commit cd31964

Browse files
committed
OCPBUGS-77895: Allow for override of agent vcpu and memory
The CI conformance tests need more resources than currently configured for installations. Allow these settings to be overridden. This requires a corresponding change in openshift/release to use higher limits.
1 parent 0e95a24 commit cd31964

1 file changed

Lines changed: 27 additions & 27 deletions

File tree

common.sh

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -472,30 +472,30 @@ if [[ ! -z ${AGENT_E2E_TEST_SCENARIO} ]]; then
472472
case "$SCENARIO" in
473473
"5CONTROL" )
474474
export NUM_MASTERS=5
475-
export MASTER_VCPU=4
476-
export MASTER_DISK=100
477-
export MASTER_MEMORY=24576
475+
export MASTER_VCPU="${MASTER_VCPU:-4}"
476+
export MASTER_DISK="${MASTER_DISK:-100}"
477+
export MASTER_MEMORY="${MASTER_MEMORY:-24576}"
478478
export NUM_WORKERS=0
479479
;;
480480
"4CONTROL" )
481481
export NUM_MASTERS=4
482-
export MASTER_VCPU=4
483-
export MASTER_DISK=100
484-
export MASTER_MEMORY=24576
482+
export MASTER_VCPU="${MASTER_VCPU:-4}"
483+
export MASTER_DISK="${MASTER_DISK:-100}"
484+
export MASTER_MEMORY="${MASTER_MEMORY:-24576}"
485485
export NUM_WORKERS=0
486486
;;
487487
"COMPACT" )
488488
export NUM_MASTERS=3
489-
export MASTER_VCPU=4
490-
export MASTER_DISK=100
491-
export MASTER_MEMORY=32768
489+
export MASTER_VCPU="${MASTER_VCPU:-4}"
490+
export MASTER_DISK="${MASTER_DISK:-100}"
491+
export MASTER_MEMORY="${MASTER_MEMORY:-32768}"
492492
export NUM_WORKERS=0
493493
;;
494494
"TNA" )
495495
export NUM_MASTERS=2
496-
export MASTER_VCPU=8
497-
export MASTER_DISK=100
498-
export MASTER_MEMORY=32768
496+
export MASTER_VCPU="${MASTER_VCPU:-8}"
497+
export MASTER_DISK="${MASTER_DISK:-100}"
498+
export MASTER_MEMORY="${MASTER_MEMORY:-32768}"
499499
export NUM_ARBITERS=1
500500
export ARBITER_VCPU=2
501501
export ARBITER_MEMORY=8192
@@ -504,27 +504,27 @@ if [[ ! -z ${AGENT_E2E_TEST_SCENARIO} ]]; then
504504
;;
505505
"TNF" )
506506
export NUM_MASTERS=2
507-
export MASTER_VCPU=8
508-
export MASTER_DISK=100
509-
export MASTER_MEMORY=32768
507+
export MASTER_VCPU="${MASTER_VCPU:-8}"
508+
export MASTER_DISK="${MASTER_DISK:-100}"
509+
export MASTER_MEMORY="${MASTER_MEMORY:-32768}"
510510
export NUM_WORKERS=0
511511
export ENABLE_TWO_NODE_FENCING="true"
512512
;;
513513
"HA" )
514514
export NUM_MASTERS=3
515-
export MASTER_VCPU=4
516-
export MASTER_DISK=100
517-
export MASTER_MEMORY=32768
515+
export MASTER_VCPU="${MASTER_VCPU:-4}"
516+
export MASTER_DISK="${MASTER_DISK:-100}"
517+
export MASTER_MEMORY="${MASTER_MEMORY:-32768}"
518518
export NUM_WORKERS=2
519-
export WORKER_VCPU=4
520-
export WORKER_DISK=100
521-
export WORKER_MEMORY=9000
519+
export WORKER_VCPU="${WORKEr_VCPU:-4}"
520+
export WORKER_DISK="${WORKER_DISK:-100}"
521+
export WORKER_MEMORY="${WORKER_MEMORY:-9000}"
522522
;;
523523
"SNO" )
524524
export NUM_MASTERS=1
525-
export MASTER_VCPU=8
526-
export MASTER_DISK=100
527-
export MASTER_MEMORY=32768
525+
export MASTER_VCPU="${MASTER_VCPU:-8}"
526+
export MASTER_DISK="${MASTER_DISK:-100}"
527+
export MASTER_MEMORY="${MASTER_MEMORY:-32768}"
528528
export NUM_WORKERS=0
529529
export NETWORK_TYPE="OVNKubernetes"
530530
export AGENT_PLATFORM_TYPE="${AGENT_PLATFORM_TYPE:-"none"}"
@@ -535,9 +535,9 @@ if [[ ! -z ${AGENT_E2E_TEST_SCENARIO} ]]; then
535535
;;
536536
"SNOMIN" )
537537
export NUM_MASTERS=1
538-
export MASTER_VCPU=4
539-
export MASTER_DISK=100
540-
export MASTER_MEMORY=32768
538+
export MASTER_VCPU="${MASTER_VCPU:-4}"
539+
export MASTER_DISK="${MASTER_DISK:-100}"
540+
export MASTER_MEMORY="${MASTER_MEMORY:-32768}"
541541
export NUM_WORKERS=0
542542
export NETWORK_TYPE="OVNKubernetes"
543543
export AGENT_PLATFORM_TYPE="${AGENT_PLATFORM_TYPE:-"none"}"

0 commit comments

Comments
 (0)