Actually use the correct control plane #8
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
name: Kubernetes Version Compatibility Tests | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
APISERVER_VERSION: 1.28.x | |
strategy: | |
matrix: | |
upstreamApiserverVersion: | |
- "1.28.x" | |
- "1.27.x" | |
- "1.26.x" | |
- "1.25.x" | |
- "1.24.x" | |
- "1.23.x" | |
- "1.22.x" | |
- "1.21.x" | |
- "1.20.x" | |
- "1.19.x" | |
- "1.17.x" | |
- "1.16.x" | |
- "1.15.x" | |
- "1.14.x" | |
- "1.13.x" | |
- "1.12.x" | |
- "1.11.x" | |
- "1.10.x" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21' | |
- name: Download kubebuilder assets | |
run: | | |
echo "KUBEBUILDER_ASSETS=$(go run sigs.k8s.io/controller-runtime/tools/setup-envtest@latest use -p path $APISERVER_VERSION)" >> $GITHUB_ENV | |
echo "UPSTREAM_KUBEBUILDER_ASSETS=$(go run sigs.k8s.io/controller-runtime/tools/setup-envtest@latest use -p path ${{ matrix.upstreamApiserverVersion }})" >> $GITHUB_ENV | |
- name: Run tests | |
run: go test -v ./internal/controllers/reconciliation |