Skip to content

Commit cf4e298

Browse files
ci(hot-cluster): fix IPI flavor format (bx2-4x16 not bx2.4x16)
openshift-install uses hyphen-separated VPC instance profiles (bx2-4x16) while ibmcloud oc uses dot-separated (bx2.4x16). Convert automatically. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 2aa1b33 commit cf4e298

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/ibmc-cluster-setup.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,9 @@ jobs:
306306
ssh-keygen -t ed25519 -f "${INSTALL_DIR}/ssh-key" -N "" -q
307307
SSH_PUB=$(cat "${INSTALL_DIR}/ssh-key.pub")
308308
309+
# IPI uses hyphen-separated flavors (bx2-4x16), not dot (bx2.4x16)
310+
IPI_WORKER_FLAVOR=$(echo "${WORKER_FLAVOR}" | sed 's/\./-/g')
311+
309312
cat > "${INSTALL_DIR}/install-config.yaml" <<EOF
310313
apiVersion: v1
311314
metadata:
@@ -321,15 +324,15 @@ jobs:
321324
replicas: 3
322325
platform:
323326
ibmcloud:
324-
type: bx2.4x16
327+
type: bx2-4x16
325328
compute:
326329
- architecture: amd64
327330
hyperthreading: Enabled
328331
name: worker
329332
replicas: ${WORKER_COUNT}
330333
platform:
331334
ibmcloud:
332-
type: ${WORKER_FLAVOR}
335+
type: ${IPI_WORKER_FLAVOR}
333336
networking:
334337
networkType: OVNKubernetes
335338
clusterNetwork:

0 commit comments

Comments
 (0)