Skip to content

Instantly share code, notes, and snippets.

@sjenning
Created July 8, 2025 13:43
Show Gist options
  • Save sjenning/42017f3dd478001e1d8962eb347b7d40 to your computer and use it in GitHub Desktop.
Save sjenning/42017f3dd478001e1d8962eb347b7d40 to your computer and use it in GitHub Desktop.
Running hypershift e2e locally
#!/bin/bash
set -eux
OCP_IMAGE_LATEST=registry.build05.ci.openshift.org/ci-op-viybj1hv/release:latest
#OCP_IMAGE_LATEST=$(curl -s https://amd64.ocp.releases.ci.openshift.org/api/v1/releasestream/4.19.0-0.ci/latest | jq -r '.pullSpec')
OCP_IMAGE_PREVIOUS=$OCP_IMAGE_LATEST
#OCP_IMAGE_PREVIOUS=registry.ci.openshift.org/ocp/release:4.19.0-0.ci-2025-03-30-053758
CI_TESTS_RUN="TestCreateCluster$"
# --e2e.node-pool-replicas=1 \
# --e2e.aws-zones=us-east-1a,us-east-1b,us-east-1c \
# --e2e.additional-tags="expirationDate=$(date -d '4 hours' --iso=minutes --utc)" \
rm -rf artifacts
mkdir artifacts
bin/test-e2e \
-test.v \
-test.timeout=1h \
-test.run=${CI_TESTS_RUN} \
-test.parallel=1 \
--e2e.artifact-dir=$PWD/artifacts \
--e2e.aws-credentials-file=$HOME/hypershift/aws-creds \
--e2e.pull-secret-file=$HOME/hypershift/pull-secret \
--e2e.ssh-key-file=$HOME/.ssh/id_ed25519.pub \
--e2e.base-domain=ci.hypershift.devcluster.openshift.com \
--e2e.latest-release-image="${OCP_IMAGE_LATEST}" \
--e2e.previous-release-image="${OCP_IMAGE_PREVIOUS}" \
--e2e.aws-endpoint-access=Public \
--e2e.aws-zones=us-east-1a \
--e2e.aws-oidc-s3-bucket-name=hypershift-ci-oidc \
--e2e.external-dns-domain=service.ci.hypershift.devcluster.openshift.com | tee build.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment