Skip to content

Flip terms

Flip terms #9

Workflow file for this run

name: Kubernetes Version Compatibility Tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
env:
upstreamApiserverVersion: 1.28.x
strategy:
matrix:
downstreamApiserverVersion:
- "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 "UPSTREAM_KUBEBUILDER_ASSETS=$(go run sigs.k8s.io/controller-runtime/tools/setup-envtest@latest use -p path ${{ env.upstreamApiserverVersion }})" >> $GITHUB_ENV
echo "DOWNSTREAM_KUBEBUILDER_ASSETS=$(go run sigs.k8s.io/controller-runtime/tools/setup-envtest@latest use -p path ${{ matrix.downstreamApiserverVersion }})" >> $GITHUB_ENV
- name: Run tests
run: go test -v ./internal/controllers/reconciliation