From f19fce334c7f6afe92619969f21d6380df7c5f55 Mon Sep 17 00:00:00 2001 From: Richard Vanderpool <49568690+rvanderp3@users.noreply.github.com> Date: Tue, 7 Jun 2022 08:52:23 -0400 Subject: [PATCH] remove override of defaults for compute pool --- .../conf/vsphere/ipi-conf-vsphere-commands.sh | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/ci-operator/step-registry/ipi/conf/vsphere/ipi-conf-vsphere-commands.sh b/ci-operator/step-registry/ipi/conf/vsphere/ipi-conf-vsphere-commands.sh index eef3d3c252521..b320983983906 100755 --- a/ci-operator/step-registry/ipi/conf/vsphere/ipi-conf-vsphere-commands.sh +++ b/ci-operator/step-registry/ipi/conf/vsphere/ipi-conf-vsphere-commands.sh @@ -27,6 +27,8 @@ CONFIG="${SHARED_DIR}/install-config.yaml" base_domain=$(<"${SHARED_DIR}"/basedomain.txt) machine_cidr=$(<"${SHARED_DIR}"/machinecidr.txt) +MACHINE_POOL_OVERRIDES="" + RESOURCE_POOL_DEF="" set +o errexit VERSION=$(echo "${JOB_NAME}" | grep -o -E '4\.[0-9]+') @@ -37,19 +39,16 @@ if [ ! -z ${VERSION} ]; then echo "4.x installation is later than 4.9, will install with resource pool" RESOURCE_POOL_DEF="resourcePool: /${vsphere_datacenter}/host/${vsphere_cluster}/Resources/ipi-ci-clusters" fi -fi - -cat >> "${CONFIG}" << EOF -baseDomain: $base_domain -controlPlane: - name: "master" + if [ ${Z_VERSION} -lt 11 ]; then + MACHINE_POOL_OVERRIDES="controlPlane: + name: master replicas: 3 platform: vsphere: osDisk: diskSizeGB: 120 compute: -- name: "worker" +- name: worker replicas: 3 platform: vsphere: @@ -57,7 +56,13 @@ compute: coresPerSocket: 1 memoryMB: 16384 osDisk: - diskSizeGB: 120 + diskSizeGB: 120" + fi +fi + +cat >> "${CONFIG}" << EOF +baseDomain: $base_domain +$MACHINE_POOL_OVERRIDES platform: vsphere: vcenter: "${vsphere_url}" @@ -74,3 +79,4 @@ networking: machineNetwork: - cidr: "${machine_cidr}" EOF +