-
Notifications
You must be signed in to change notification settings - Fork 754
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run Kops Test Separately to triage failures. (#2936)
- Loading branch information
Showing
3 changed files
with
52 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Kops tests | ||
|
||
on: | ||
workflow_dispatch: {} | ||
schedule: | ||
- cron: "0 15 * * *" # every day | ||
|
||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
jobs: | ||
daily-kops: | ||
if: github.repository == 'aws/amazon-vpc-cni-k8s' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout latest commit in the PR | ||
uses: actions/checkout@v3 | ||
- name: Set up Docker QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.22" | ||
- name: Set up tools | ||
run: | | ||
# Install ginkgo version from go.mod | ||
go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo | ||
curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp | ||
sudo mv /tmp/eksctl /usr/local/bin/ | ||
- name: Set up AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
role-to-assume: ${{ secrets.OSS_TEST_ROLE_ARN }} | ||
role-duration-seconds: 28800 # 8 hours | ||
aws-region: ${{ secrets.AWS_DEFAULT_REGION }} | ||
- name: Run kops tests | ||
env: | ||
DISABLE_PROMPT: true | ||
ROLE_CREATE: false | ||
ROLE_ARN: ${{ secrets.EKS_CLUSTER_ROLE_ARN }} | ||
RUN_CNI_INTEGRATION_TESTS: false | ||
RUN_KOPS_TEST: true | ||
K8S_VERSION: 1.30.0-beta.0 | ||
KOPS_VERSION: v1.29.0 | ||
KOPS_RUN_TOO_NEW_VERSION: 1 | ||
run: | | ||
./scripts/run-integration-tests.sh | ||
if: always() |
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