Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 0 additions & 45 deletions .github/workflows/kind-action.yml

This file was deleted.

74 changes: 74 additions & 0 deletions .github/workflows/kind-e2e-latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Run E2E Kind

on:
pull_request:
types: [opened, reopened, synchronize]

jobs:
test-k8s-1-34-1:
runs-on: ubuntu-latest
env:
KIND_CLUSTER_NAME: kinder
K8S_VERSION: v1.34.0
steps:
- name: install kind
run: |
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.30.0/kind-$(uname)-amd64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Verify go version
run: |
go version
- name: Install bazelisk
run: |
curl -Lo bazelisk https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64
chmod +x bazelisk
sudo mv bazelisk /usr/local/bin/bazel

- name: Clone Kubernetes source at ${{ env.K8S_VERSION }}
run: |
git clone --depth 1 --branch ${K8S_VERSION} https://github.com/kubernetes/kubernetes.git
ls kubernetes

- name: Debug working directories
run: |
echo "Workflow root: $PWD"
echo "Listing contents:"
ls -la
echo "Listing kubernetes source:"
ls -la kubernetes

- name: Build KIND node image for Kubernetes ${{ env.K8S_VERSION }}
working-directory: ./kubernetes
run: |
kind build node-image --type=bazel --image kindest/node:${K8S_VERSION}

- name: Create KIND cluster with custom image
run: |
kind create cluster --name $KIND_CLUSTER_NAME --image kindest/node:${K8S_VERSION}

- name: Verify cluster is ready
run: kubectl cluster-info --context kind-${KIND_CLUSTER_NAME}
- name: Install Carvel Tools
run: ./hack/install-deps.sh
- name: Run tests
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'
84 changes: 0 additions & 84 deletions .github/workflows/test-gh.yml

This file was deleted.

63 changes: 0 additions & 63 deletions .github/workflows/test-kctrl-gh.yml

This file was deleted.

Loading