forked from aws/karpenter-provider-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #208 from engedaam/soak-testing-v3
Soak testing
- Loading branch information
Showing
13 changed files
with
251 additions
and
35 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 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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: E2ESoakTrigger | ||
on: | ||
schedule: | ||
- cron: '0 */3 * * *' | ||
jobs: | ||
resolve_cluster: | ||
if: github.repository == 'aws/karpenter' | ||
runs-on: ubuntu-latest | ||
outputs: | ||
PREEXISTING_CLUSTERS: ${{ steps.list_clusters.outputs.PREEXISTING_CLUSTERS }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: configure aws credentials | ||
uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a | ||
with: | ||
role-to-assume: arn:aws:iam::${{ vars.ACCOUNT_ID }}:role/${{ vars.ROLE_NAME }} | ||
aws-region: eu-north-1 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version-file: test/hack/soak/go.mod | ||
cache-dependency-path: test/hack/soak/go.sum | ||
check-latest: true | ||
cache: false | ||
# Grab all the names of the soak testing clusters, and identify clusters that will need to be deleted | ||
# Empty cluster_name will indicate that a new cluster will be created | ||
- id: list_clusters | ||
name: "Run list clusters script" | ||
run: | | ||
PREEXISTING_CLUSTERS="$(go run main.go)" | ||
echo PREEXISTING_CLUSTERS="$PREEXISTING_CLUSTERS" >> "$GITHUB_OUTPUT" | ||
working-directory: ./test/hack/soak | ||
shell: bash | ||
soak: | ||
permissions: | ||
id-token: write # aws-actions/[email protected] | ||
needs: [resolve_cluster] | ||
strategy: | ||
fail-fast: false | ||
matrix: ${{ fromJson(needs.resolve_cluster.outputs.PREEXISTING_CLUSTERS) }} | ||
uses: ./.github/workflows/e2e.yaml | ||
with: | ||
suite: Integration | ||
region: eu-north-1 | ||
workflow_trigger: "soak" | ||
cluster_name: ${{ matrix.cluster_name }} | ||
cleanup: ${{ matrix.cluster_cleanup }} | ||
secrets: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
SLACK_WEBHOOK_SOAK_URL: ${{ secrets.SLACK_WEBHOOK_SOAK_URL }} |
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
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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
module github.com/aws/karpenter/test/hack/soak | ||
|
||
go 1.21 | ||
|
||
require ( | ||
github.com/aws/aws-sdk-go v1.47.9 | ||
github.com/aws/aws-sdk-go-v2/config v1.23.0 | ||
github.com/aws/aws-sdk-go-v2/service/eks v1.32.0 | ||
github.com/samber/lo v1.38.1 | ||
) | ||
|
||
require ( | ||
github.com/aws/aws-sdk-go-v2 v1.22.2 // indirect | ||
github.com/aws/aws-sdk-go-v2/credentials v1.15.2 // indirect | ||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.3 // indirect | ||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.2 // indirect | ||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.2 // indirect | ||
github.com/aws/aws-sdk-go-v2/internal/ini v1.6.0 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.2 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/sso v1.17.1 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.19.1 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/sts v1.25.1 // indirect | ||
github.com/aws/smithy-go v1.16.0 // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/jmespath/go-jmespath v0.4.0 // indirect | ||
golang.org/x/exp v0.0.0-20220303212507-bbda1eaf7a17 // indirect | ||
) |
Oops, something went wrong.