Skip to content

Commit ac6d9cb

Browse files
committed
hack/e2e-test: Add "hive-" prefix to cluster name
The uuidgen approach is from fce3741 (hack/e2e-test: Use uuidgen to create the cluster name, 2019-02-19, openshift#222), where we were working around a broken oc call and the installer's poor handling of long cluster names. The long-name handling has since been fixed, so this commit drops the workaround 'cut'. It also adds a 'hive-' prefix to make it easier to track down issues when we leak CI resources.
1 parent 98a7a3f commit ac6d9cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/e2e-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ CLUSTER_DEPLOYMENT_FILE="/tmp/cluster-deployment.json"
5353
# Create a new cluster deployment
5454
# TODO: Determine which domain to use to create Hive clusters
5555
export BASE_DOMAIN="hive-ci.openshift.com"
56-
export CLUSTER_NAME="$(uuidgen | cut -b-18)"
56+
export CLUSTER_NAME="hive-$(uuidgen)"
5757
export SSH_PUB_KEY="$(cat ${CLOUD_CREDS_DIR}/ssh-publickey)"
5858
export PULL_SECRET="$(cat ${CLOUD_CREDS_DIR}/pull-secret)"
5959
export AWS_ACCESS_KEY_ID="$(cat ${CLOUD_CREDS_DIR}/.awscred | awk '/aws_access_key_id/ { print $3; exit; }')"

0 commit comments

Comments
 (0)