Skip to content

Commit

Permalink
Add Karpenter end-to-end test workflow and update k7r-e2e.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
faermanj committed Jan 29, 2024
1 parent a5b1929 commit 1f22ea5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/k7r-e2e.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Karpenter end-to-end test

on:
workflow_dispatch: {}

jobs:
create-okd-cluster:
runs-on: ubuntu-latest

steps:

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.K7R_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.k7R_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}

- name: Check AWS auth
run: aws sts get-caller-identity

- name: Checkout code
uses: actions/checkout@v3

- name: Karpenter end-to-end test
run: ./k7r-e2e.sh
4 changes: 4 additions & 0 deletions k7r-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@ fi
echo "Creating new cluster [$ENV_ID]"
source ./create-cluster.aws-e2e.sh

echo "Soundcheck"
oc cluster-info
oc get nodes

echo "Destroying cluster [$ENV_ID]"
source ./destroy-cluster.e2e.sh

0 comments on commit 1f22ea5

Please sign in to comment.