Skip to content

Commit

Permalink
refactor kind-action
Browse files Browse the repository at this point in the history
Signed-off-by: Ankit Kumar <[email protected]>
  • Loading branch information
ankitsny committed Jan 28, 2025
1 parent 65fb523 commit 24e5bcf
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/kind-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Kind Cluster E2E tests

on:
pull_request:
types: [opened, reopened, synchronize]
paths-ignore:
- 'docs/**'
- '*.md'
- 'cli/**'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- name: Create k8s Kind Cluster
uses: helm/kind-action@v1
with:
cluster_name: kinder
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Install Carvel Tools
run: ./hack/install-deps.sh
# Run benchmark with `go test -bench` and stores the output to a file
- name: Install kc and run e2e tests on kind
run: |
set -e -x
kubectl version
source ./hack/version-util.sh
ytt -f config/config -f config/values-schema.yml -f config-dev -v dev.version="$(get_kappctrl_ver)+develop" | kbld -f- > kbld.out 2> kbldmeta.out
cat kbldmeta.out | tail -n 1 | sed 's/.*final: kapp-controller -> \(.*\)$/\1/p' | tail -n 1 | xargs kind load docker-image --name kinder
kapp deploy -a kc -f kbld.out -c -y
export KAPPCTRL_E2E_SECRETGEN_CONTROLLER=true
source ./hack/secretgen-controller.sh
deploy_secretgen-controller
mkdir tmp
KAPPCTRL_E2E_NAMESPACE=kappctrl-test eval './hack/test-e2e.sh'

0 comments on commit 24e5bcf

Please sign in to comment.