Skip to content

Commit

Permalink
Cluster tests in eks
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Abro <[email protected]>
  • Loading branch information
AustinAbro321 committed Jul 22, 2024
1 parent b23f20a commit e1ab7a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/nightly-eks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Test EKS Cluster
on:
schedule:
- cron: '0 7 * * *' ## Every day at 0700 UTC

workflow_dispatch: ## Give us the ability to run this manually
inputs:
cluster_name:
Expand Down Expand Up @@ -33,8 +32,8 @@ jobs:
- name: Setup golang
uses: ./.github/actions/golang

- name: Build Zarf
run: make
- name: Build binary and zarf packages
uses: ./.github/actions/packages

- name: Auth with AWS
uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1
Expand All @@ -56,7 +55,7 @@ jobs:
--confirm
- name: Run tests
run: make test-e2e ARCH=amd64
run: make test-e2e-with-cluster ARCH=amd64

- name: Teardown the cluster
if: always()
Expand All @@ -70,9 +69,8 @@ jobs:
if: always()
uses: ./.github/actions/save-logs

# UNCOMMENT BEFORE MERGE
# - name: Send trigger to Slack on workflow failure
# if: failure()
# uses: ./.github/actions/slack
# with:
# slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
- name: Send trigger to Slack on workflow failure
if: failure()
uses: ./.github/actions/slack
with:
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
4 changes: 2 additions & 2 deletions packages/distros/eks/zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ components:
actions:
onDeploy:
before:
- cmd: ./binaries/eksctl_$(uname -s)_$(uname -m) create cluster --dry-run -f eks.yaml -v 5
- cmd: ./binaries/eksctl_$(uname -s)_$(uname -m) create cluster --dry-run -f eks.yaml
- cmd: sleep 15
- cmd: ./binaries/eksctl_$(uname -s)_$(uname -m) create cluster -f eks.yaml -v 5
- cmd: ./binaries/eksctl_$(uname -s)_$(uname -m) create cluster -f eks.yaml
- cmd: ./binaries/eksctl_$(uname -s)_$(uname -m) utils write-kubeconfig -c ${ZARF_VAR_EKS_CLUSTER_NAME}

- name: teardown-eks-cluster
Expand Down

0 comments on commit e1ab7a6

Please sign in to comment.