Skip to content

Commit 24e5bcf

Browse files
committed
refactor kind-action
Signed-off-by: Ankit Kumar <[email protected]>
1 parent 65fb523 commit 24e5bcf

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/kind-action.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Kind Cluster E2E tests
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize]
6+
paths-ignore:
7+
- 'docs/**'
8+
- '*.md'
9+
- 'cli/**'
10+
workflow_dispatch:
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
run-tests:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Create k8s Kind Cluster
21+
uses: helm/kind-action@v1
22+
with:
23+
cluster_name: kinder
24+
- uses: actions/[email protected]
25+
with:
26+
fetch-depth: 0
27+
- uses: actions/setup-go@v5
28+
with:
29+
go-version-file: go.mod
30+
- name: Install Carvel Tools
31+
run: ./hack/install-deps.sh
32+
# Run benchmark with `go test -bench` and stores the output to a file
33+
- name: Install kc and run e2e tests on kind
34+
run: |
35+
set -e -x
36+
kubectl version
37+
source ./hack/version-util.sh
38+
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
39+
cat kbldmeta.out | tail -n 1 | sed 's/.*final: kapp-controller -> \(.*\)$/\1/p' | tail -n 1 | xargs kind load docker-image --name kinder
40+
kapp deploy -a kc -f kbld.out -c -y
41+
export KAPPCTRL_E2E_SECRETGEN_CONTROLLER=true
42+
source ./hack/secretgen-controller.sh
43+
deploy_secretgen-controller
44+
mkdir tmp
45+
KAPPCTRL_E2E_NAMESPACE=kappctrl-test eval './hack/test-e2e.sh'

0 commit comments

Comments
 (0)