-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get random region for Gardener cluster in backend switching job and check for is-PR-approved #420
Conversation
@@ -60,6 +58,9 @@ jobs: | |||
# generate cluster name and export it to Github env for cleanup step to access it. | |||
export CLUSTER_NAME="${CLUSTER_PREFIX}$(openssl rand -hex 2)" | |||
echo "CLUSTER_NAME=${CLUSTER_NAME}" >> $GITHUB_ENV | |||
# set random region for AWS. | |||
export GARDENER_REGION=$(./scripts/gardener/aws/get_random_region.sh) | |||
export GARDENER_ZONES="${GARDENER_REGION}a" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we always use zones with the suffix a
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are always using the first zone in the region, we do not have any preference for zones.
wait-until-build-succeeds: | ||
runs-on: ubuntu-latest | ||
needs: is-pr-approved |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why don't you want to run this if an PR not approved?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have quota limits on number of gardener clusters, so we are filtering out to only run on approved PRs so less number of gardener clusters are created at a time.
Description
Changes proposed in this pull request:
Related issue(s)