File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 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+ 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'
You can’t perform that action at this time.
0 commit comments