Update To Kubernetes v1.31 #252
Workflow file for this run
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: CI | |
on: [push, pull_request] | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
# Execute the checks inside the container instead the VM. | |
container: golangci/golangci-lint:v1.60.3-alpine | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
# We need this go flag because it started to error after golangci-lint is using Go 1.21. | |
# TODO(slok): Remove it on next (>1.54.1) golangci-lint upgrade to check if this problem has gone. | |
export GOFLAGS="-buildvcs=false" | |
./hack/scripts/check.sh | |
unit-test: | |
name: Unit test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
- run: make ci-unit-test | |
integration-test: | |
name: Integration test | |
runs-on: ubuntu-latest | |
needs: [check, unit-test] | |
strategy: | |
matrix: | |
kubernetes: [1.26.15, 1.27.16, 1.28.13, 1.29.8, 1.30.4, 1.31.0] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
- name: Execute tests | |
env: | |
KIND_VERSION: v0.25.0 | |
run: | | |
# Get dependencies. | |
echo "Getting dependencies..." | |
curl -Lo kind https://github.com/kubernetes-sigs/kind/releases/download/${KIND_VERSION}/kind-linux-amd64 && chmod +x kind && sudo mv kind /usr/local/bin/ | |
curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v${{ matrix.kubernetes }}/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/ | |
# Start cluster. | |
echo "Executing ${{ matrix.kubernetes }} Kubernetes tests..." | |
KUBERNETES_VERSION=${{ matrix.kubernetes }} make ci-integration-test |