Skip to content

Commit

Permalink
compact cluster test
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangquanLi930 committed May 1, 2024
1 parent 8a336a9 commit 3069110
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
Expand Up @@ -94,7 +94,7 @@ metadata:
spec:
autoAssign: false
addresses:
- 192.168.111.30-192.168.111.30
- 192.168.111.30-192.168.111.50
EOF
elif [[ $IP_STACK == "v4v6" ]]; then
oc create -f - <<EOF
Expand All @@ -106,8 +106,8 @@ metadata:
spec:
autoAssign: false
addresses:
- 192.168.111.30-192.168.111.30
- fd2e:6f44:5dd8:c956::1e-fd2e:6f44:5dd8:c956::1e
- 192.168.111.30-192.168.111.50
- fd2e:6f44:5dd8:c956::1e-fd2e:6f44:5dd8:c956::32
EOF
elif [[ $IP_STACK == "v6" ]]; then
oc create -f - <<EOF
Expand All @@ -120,7 +120,7 @@ spec:
protocol: layer2
autoAssign: false
addresses:
- fd2e:6f44:5dd8:c956::1e-fd2e:6f44:5dd8:c956::1e
- fd2e:6f44:5dd8:c956::1e-fd2e:6f44:5dd8:c956::32
EOF
else
echo "$IP_STACK don't support"
Expand Down
Expand Up @@ -45,6 +45,7 @@ fi
--api-server-address=api.${CLUSTER_NAME}.${BASEDOMAIN} \
--image-content-sources "${SHARED_DIR}/mgmt_icsp.yaml" \
--ssh-key="${SHARED_DIR}/id_rsa.pub" \
--network-type=OVNKubernetes \
--release-image ${RELEASE_IMAGE}

if (( $(awk 'BEGIN {print ("'"$MCE_VERSION"'" < 2.4)}') )); then
Expand Down
Expand Up @@ -26,6 +26,11 @@ chain:
fi
CLUSTER_NAME="$(echo -n $PROW_JOB_ID|sha256sum|cut -c-20)"
oc get machine -n "local-cluster-$CLUSTER_NAME" -o=jsonpath='{.items[*].metadata.name}' | \
while read -r machine_name; do
oc patch machine "$machine_name" -n "local-cluster-$CLUSTER_NAME" -p '{"metadata":{"finalizers":[]}}' --type=merge
done
echo "$(date) Deleting HyperShift cluster ${CLUSTER_NAME}"
/tmp/${HYPERSHIFT_NAME} destroy cluster agent \
Expand Down
Expand Up @@ -66,6 +66,7 @@ fi
--base-domain=\${BASEDOMAIN} \
--api-server-address=api.\${CLUSTER_NAME}.\${BASEDOMAIN} \
--image-content-sources "/home/mgmt_icsp.yaml" \
--network-type=OVNKubernetes \
--release-image \${PLAYLOADIMAGE}
echo "Waiting for cluster to become available"
Expand Down
Expand Up @@ -8,6 +8,7 @@ workflow:
allow_best_effort_post_steps: true
allow_skip_on_success: true
post:
- ref: wait
- chain: hypershift-mce-agent-destroy
- chain: baremetalds-ofcir-post
test:
Expand Down

0 comments on commit 3069110

Please sign in to comment.