Skip to content
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

Merged
merged 2 commits into from
Jan 19, 2024

Conversation

mfaizanse
Copy link
Member

Description

Changes proposed in this pull request:

  • Assigns random region for Gardener cluster in backend switching job.

Related issue(s)

@mfaizanse mfaizanse requested review from the1bit and a team as code owners January 18, 2024 15:53
@kyma-bot kyma-bot added the area/ci Issues or PRs related to CI related topics label Jan 18, 2024
@mfaizanse mfaizanse added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. and removed area/ci Issues or PRs related to CI related topics labels Jan 18, 2024
@kyma-bot kyma-bot added cla: yes Indicates the PR's author has signed the CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 18, 2024
@kyma-bot kyma-bot added area/ci Issues or PRs related to CI related topics size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 18, 2024
@mfaizanse mfaizanse linked an issue Jan 18, 2024 that may be closed by this pull request
3 tasks
@mfaizanse mfaizanse changed the title Get random region for Gardener cluster in backend switching job Get random region for Gardener cluster in backend switching job and check for is-PR-approved Jan 18, 2024
@@ -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"
Copy link
Contributor

@muralov muralov Jan 19, 2024

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?

Copy link
Member Author

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
Copy link
Contributor

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?

Copy link
Member Author

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.

@mfaizanse mfaizanse removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 19, 2024
@kyma-bot kyma-bot added the lgtm Looks good to me! label Jan 19, 2024
@kyma-bot kyma-bot merged commit 342ee27 into kyma-project:main Jan 19, 2024
12 checks passed
@muralov muralov deleted the issue345_6 branch January 22, 2024 09:11
@grischperl grischperl modified the milestone: 1.2.0 Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci Issues or PRs related to CI related topics cla: yes Indicates the PR's author has signed the CLA. lgtm Looks good to me! size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI pipeline for backend switching tests
4 participants