-
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.
Merge pull request #1678 from carvel-dev/k8s-min-max-version-bump
k8s 1.32 support validation and GH action refactor
- Loading branch information
Showing
562 changed files
with
37,034 additions
and
31,684 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 |
---|---|---|
|
@@ -18,33 +18,28 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Create k8s Kind Cluster | ||
uses: helm/kind-action@v1.8.0 | ||
uses: helm/kind-action@v1 | ||
with: | ||
kubectl_version: v1.25.0 | ||
cluster_name: kinder | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-go@v5 # default version of go is 1.10 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.23.3 | ||
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 --short | ||
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' | ||
KAPPCTRL_E2E_NAMESPACE=kappctrl-test eval './hack/test-e2e.sh' |
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 |
---|---|---|
|
@@ -20,17 +20,44 @@ concurrency: | |
|
||
jobs: | ||
test-all: | ||
name: Test GH | ||
name: Run all tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
max-parallel: 2 | ||
matrix: | ||
k8s-version: [v1.27.0, latest] | ||
steps: | ||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v5 | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v4 | ||
with: | ||
go-version: 1.23.3 | ||
- name: Check out code | ||
uses: actions/[email protected] | ||
fetch-depth: 0 | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
fetch-depth: 0 | ||
go-version-file: go.mod | ||
- name: Resolve Kubernetes version | ||
id: resolve-k8s-version | ||
run: | | ||
k8s_version=${{ matrix.k8s-version }} | ||
if [ "${k8s_version}" = "latest" ]; then | ||
k8s_version=$(curl -Ls -o /dev/null -w %{url_effective} https://github.com/kubernetes/kubernetes/releases/latest | grep -oE 'tag/v[0-9]+\.[0-9]+\.[0-9]+' | cut -d'/' -f2) | ||
echo "Resolved latest k8s version to: $k8s_version" | ||
fi | ||
echo "k8s_version=$k8s_version" >> $GITHUB_ENV | ||
- name: start minikube(k8s version ${{ env.k8s_version }}) | ||
uses: medyagh/setup-minikube@latest | ||
with: | ||
kubernetes-version: ${{ env.k8s_version }} | ||
driver: docker | ||
start: true | ||
cpus: 3 | ||
memory: 8192m | ||
- name: Verify env | ||
run: | | ||
kind version | ||
kubectl version | ||
go version | ||
- name: Install Carvel Tools | ||
run: ./hack/install-deps.sh | ||
- name: Run Tests | ||
|
@@ -46,7 +73,6 @@ jobs: | |
./hack/verify-no-dirty-files.sh | ||
minikube start --driver=docker --kubernetes-version="1.20.15" | ||
eval $(minikube docker-env --shell=bash) | ||
export KAPPCTRL_E2E_SECRETGEN_CONTROLLER=true | ||
|
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
Oops, something went wrong.