Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2674,6 +2674,7 @@ periodics:
HYPERSHIFT_NODE_COUNT: 2
HYPERSHIFT_ZONES: "us-east-1a"
HYPERSHIFT_NAMESPACE: "cluster-bot"
HYPERSHIFT_GUEST_INFRA_OCP_ACCOUNT: "true"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we also set this var for our other jobs like the presubmits?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sgtm, I was wanting to merge this one first, test it, then extend it

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I'm thinking we can change it here for some or the others and the reharse would tell us

test:
- ref: clusterbot-wait
cluster_profile: hypershift
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,21 @@ chain:
- name: HYPERSHIFT_ZONES
default: "us-east-1a,us-east-1b,us-east-1c"
documentation: "The zones where to create NodePools"
- name: HYPERSHIFT_GUEST_INFRA_OCP_ACCOUNT
default: "false"
documentation: "Whether to use the generic CI account or the HyperShift OSD account for the guest clusters infra. For the infra created for the clusters. E.g. For cluster-bot we use the generic CI account"
commands: |-
AWS_GUEST_INFRA_CREDENTIALS_FILE="/etc/hypershift-ci-jobs-awscreds/credentials"
if [[ "HYPERSHIFT_GUEST_INFRA_OCP_ACCOUNT" == "true" ]]; then
AWS_GUEST_INFRA_CREDENTIALS_FILE="${CLUSTER_PROFILE_DIR}/.awscred"
fi

export KUBECONFIG=/etc/hypershift-kubeconfig/hypershift-ops-admin.kubeconfig
CLUSTER_NAME="$(echo -n $PROW_JOB_ID|sha256sum|cut -c-20)-mgmt"
echo "Creating management cluster ${CLUSTER_NAME} with $((${HYPERSHIFT_NODE_COUNT} * 3)) nodes"
bin/hypershift create cluster aws \
--pull-secret=/etc/ci-pull-credentials/.dockerconfigjson \
--aws-creds=/etc/hypershift-ci-jobs-awscreds/credentials \
--aws-creds=${AWS_GUEST_INFRA_CREDENTIALS_FILE} \
--additional-tags="expirationDate=$(date -d '4 hours' --iso=minutes --utc)" \
--name=${CLUSTER_NAME} \
--region=us-east-1 \
Expand Down