-
Notifications
You must be signed in to change notification settings - Fork 960
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into feat-3182-dedicated-h…
…osts-selectors
- Loading branch information
Showing
173 changed files
with
6,625 additions
and
732 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,9 @@ on: | |
- cron: '0 13 * * MON' | ||
|
||
permissions: | ||
id-token: write | ||
pull-requests: write | ||
contents: write | ||
id-token: write # aws-actions/[email protected] | ||
pull-requests: write # name: Create Pull Request | ||
contents: write # name: Create Pull Request | ||
|
||
jobs: | ||
codegen: | ||
|
@@ -29,9 +29,10 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
ENABLE_GIT_PUSH: true | ||
- run: export APICodeGenUpdate=$((cat /tmp/codegen-updates && echo "APICodeGenUpdate=true" >> $GITHUB_ENV) || echo "false") | ||
- id: detect-changes | ||
run: cat /tmp/codegen-updates && echo APICodeGenUpdate=true >> $GITHUB_OUTPUT | ||
- name: Create Pull Request | ||
if: env.APICodeGenUpdate == 'true' | ||
if: steps.detect-changes.outputs.APICodeGenUpdate == 'true' | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
branches: [main] | ||
|
||
permissions: | ||
id-token: write | ||
id-token: write # aws-actions/[email protected] | ||
|
||
jobs: | ||
docgen-ci: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,13 +42,14 @@ on: | |
eksctl_version: | ||
type: string | ||
default: v0.160.0-rc.0 | ||
workflow_trigger: | ||
type: string | ||
secrets: | ||
SLACK_WEBHOOK_URL: | ||
required: true | ||
permissions: | ||
id-token: write # This is required for requesting the JWT | ||
contents: read # This is required for actions/checkout | ||
statuses: write | ||
id-token: write # aws-actions/[email protected] | ||
statuses: write # ./.github/actions/commit-status/start | ||
jobs: | ||
run-suite: | ||
name: suite-upgrade | ||
|
@@ -73,18 +74,18 @@ jobs: | |
role-to-assume: arn:aws:iam::${{ vars.ACCOUNT_ID }}:role/${{ vars.ROLE_NAME }} | ||
aws-region: ${{ inputs.region }} | ||
role-duration-seconds: 21600 | ||
- name: generate cluster name | ||
- id: generate-cluster-name | ||
run: | | ||
CLUSTER_NAME="upgrade-$RANDOM$RANDOM" | ||
echo "Using cluster name \"$CLUSTER_NAME\"" | ||
echo CLUSTER_NAME=$CLUSTER_NAME >> $GITHUB_ENV | ||
- name: create eks cluster '${{ env.CLUSTER_NAME }}' | ||
echo CLUSTER_NAME=$CLUSTER_NAME >> $GITHUB_OUTPUT | ||
- name: create eks cluster '${{ steps.generate-cluster-name.outputs.CLUSTER_NAME }}' | ||
uses: ./.github/actions/e2e/create-cluster | ||
with: | ||
account_id: ${{ vars.ACCOUNT_ID }} | ||
role: ${{ vars.ROLE_NAME }} | ||
region: ${{ inputs.region }} | ||
cluster_name: ${{ env.CLUSTER_NAME }} | ||
cluster_name: ${{ steps.generate-cluster-name.outputs.CLUSTER_NAME }} | ||
k8s_version: ${{ inputs.k8s_version }} | ||
eksctl_version: ${{ inputs.eksctl_version }} | ||
ip_family: IPv4 # Set the value to IPv6 if IPv6 suite, else IPv4 | ||
|
@@ -95,7 +96,7 @@ jobs: | |
account_id: ${{ vars.ACCOUNT_ID }} | ||
role: ${{ vars.ROLE_NAME }} | ||
region: ${{ vars.PROMETHEUS_REGION }} | ||
cluster_name: ${{ env.CLUSTER_NAME }} | ||
cluster_name: ${{ steps.generate-cluster-name.outputs.CLUSTER_NAME }} | ||
workspace_id: ${{ vars.WORKSPACE_ID }} | ||
git_ref: ${{ inputs.from_git_ref }} | ||
- name: install karpenter | ||
|
@@ -106,18 +107,18 @@ jobs: | |
region: ${{ inputs.region }} | ||
ecr_account_id: ${{ vars.ECR_ACCOUNT_ID }} | ||
ecr_region: ${{ vars.ECR_REGION }} | ||
cluster_name: ${{ env.CLUSTER_NAME }} | ||
cluster_name: ${{ steps.generate-cluster-name.outputs.CLUSTER_NAME }} | ||
git_ref: ${{ inputs.from_git_ref }} | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.to_git_ref }} | ||
- name: upgrade eks cluster '${{ env.CLUSTER_NAME }}' | ||
- name: upgrade eks cluster '${{ steps.generate-cluster-name.outputs.CLUSTER_NAME }}' | ||
uses: ./.github/actions/e2e/create-cluster | ||
with: | ||
account_id: ${{ vars.ACCOUNT_ID }} | ||
role: ${{ vars.ROLE_NAME }} | ||
region: ${{ inputs.region }} | ||
cluster_name: ${{ env.CLUSTER_NAME }} | ||
cluster_name: ${{ steps.generate-cluster-name.outputs.CLUSTER_NAME }} | ||
k8s_version: ${{ inputs.k8s_version }} | ||
eksctl_version: ${{ inputs.eksctl_version }} | ||
ip_family: IPv4 # Set the value to IPv6 if IPv6 suite, else IPv4 | ||
|
@@ -128,7 +129,7 @@ jobs: | |
account_id: ${{ vars.ACCOUNT_ID }} | ||
role: ${{ vars.ROLE_NAME }} | ||
region: ${{ vars.PROMETHEUS_REGION }} | ||
cluster_name: ${{ env.CLUSTER_NAME }} | ||
cluster_name: ${{ steps.generate-cluster-name.outputs.CLUSTER_NAME }} | ||
workspace_id: ${{ vars.WORKSPACE_ID }} | ||
git_ref: ${{ inputs.to_git_ref }} | ||
- name: upgrade crds | ||
|
@@ -137,7 +138,7 @@ jobs: | |
account_id: ${{ vars.ACCOUNT_ID }} | ||
role: ${{ vars.ROLE_NAME }} | ||
region: ${{ inputs.region }} | ||
cluster_name: ${{ env.CLUSTER_NAME }} | ||
cluster_name: ${{ steps.generate-cluster-name.outputs.CLUSTER_NAME }} | ||
git_ref: ${{ inputs.to_git_ref }} | ||
- name: upgrade karpenter | ||
uses: ./.github/actions/e2e/install-karpenter | ||
|
@@ -147,15 +148,15 @@ jobs: | |
region: ${{ inputs.region }} | ||
ecr_account_id: ${{ vars.ECR_ACCOUNT_ID }} | ||
ecr_region: ${{ vars.ECR_REGION }} | ||
cluster_name: ${{ env.CLUSTER_NAME }} | ||
cluster_name: ${{ steps.generate-cluster-name.outputs.CLUSTER_NAME }} | ||
git_ref: ${{ inputs.to_git_ref }} | ||
- name: run the Upgrade test suite | ||
run: | | ||
aws eks update-kubeconfig --name ${{ env.CLUSTER_NAME }} | ||
CLUSTER_NAME=${{ env.CLUSTER_NAME }} INTERRUPTION_QUEUE=${{ env.CLUSTER_NAME }} CLUSTER_ENDPOINT="$(aws eks describe-cluster --name ${{ env.CLUSTER_NAME }} --query "cluster.endpoint" --output text)" TEST_SUITE="Integration" make e2etests | ||
aws eks update-kubeconfig --name ${{ steps.generate-cluster-name.outputs.CLUSTER_NAME }} | ||
CLUSTER_NAME=${{ steps.generate-cluster-name.outputs.CLUSTER_NAME }} INTERRUPTION_QUEUE=${{ steps.generate-cluster-name.outputs.CLUSTER_NAME }} CLUSTER_ENDPOINT="$(aws eks describe-cluster --name ${{ steps.generate-cluster-name.outputs.CLUSTER_NAME }} --query "cluster.endpoint" --output text)" TEST_SUITE="Beta/Integration" make e2etests | ||
- name: notify slack of success or failure | ||
uses: ./.github/actions/e2e/slack/notify | ||
if: (success() || failure()) && github.event_name != 'workflow_run' && github.event_name != 'conformance' | ||
if: (success() || failure()) && github.event_name != 'workflow_run' && inputs.workflow_trigger != 'conformance' | ||
with: | ||
url: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
suite: Upgrade | ||
|
@@ -168,15 +169,15 @@ jobs: | |
account_id: ${{ vars.ACCOUNT_ID }} | ||
role: ${{ vars.ROLE_NAME }} | ||
region: ${{ inputs.region }} | ||
cluster_name: ${{ env.CLUSTER_NAME }} | ||
- name: cleanup karpenter and cluster '${{ env.CLUSTER_NAME }}' resources | ||
cluster_name: ${{ steps.generate-cluster-name.outputs.CLUSTER_NAME }} | ||
- name: cleanup karpenter and cluster '${{ steps.generate-cluster-name.outputs.CLUSTER_NAME }}' resources | ||
uses: ./.github/actions/e2e/cleanup | ||
if: always() | ||
with: | ||
account_id: ${{ vars.ACCOUNT_ID }} | ||
role: ${{ vars.ROLE_NAME }} | ||
region: ${{ inputs.region }} | ||
cluster_name: ${{ env.CLUSTER_NAME }} | ||
cluster_name: ${{ steps.generate-cluster-name.outputs.CLUSTER_NAME }} | ||
git_ref: ${{ inputs.to_git_ref }} | ||
eksctl_version: ${{ inputs.eksctl_version }} | ||
- if: always() && github.event_name == 'workflow_run' | ||
|
Oops, something went wrong.