-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ankit Kumar <[email protected]>
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |