Skip to content

Commit

Permalink
fix: gpu machineset name pattern to match instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
hemang-rh committed Dec 3, 2024
1 parent 7199725 commit e5df88f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/library/ocp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,10 @@ ocp_aws_create_gpu_machineset(){
# 8 x gaudi: dl1.24xlarge

INSTANCE_TYPE=${1:-g4dn.4xlarge}
GPU_INSTANCE_NAME=${2:-cluster-${INSTANCE_TYPE/./-}-gpu}

ocp_aws_clone_worker_machineset "${INSTANCE_TYPE}"
echo "Creating machineset: ${INSTANCE_TYPE} as ${GPU_INSTANCE_NAME}"
ocp_aws_clone_worker_machineset "${INSTANCE_TYPE}" "${GPU_INSTANCE_NAME}"

MACHINE_SET_TYPE=$(oc -n openshift-machine-api get machinesets.machine.openshift.io -o name | grep "${INSTANCE_TYPE%.*}" | head -n1)

Expand Down

0 comments on commit e5df88f

Please sign in to comment.