Skip to content

Bump up Go, Kubernetes libs, and Kubernetes cluster versions - 1.26 -… #36

Bump up Go, Kubernetes libs, and Kubernetes cluster versions - 1.26 -…

Bump up Go, Kubernetes libs, and Kubernetes cluster versions - 1.26 -… #36

Workflow file for this run

name: Test example mini-programs against different versions of Kubernetes & client-go
on:
push:
branches:
- main
pull_request:
branches:
- main
types: [opened, synchronize, closed]
jobs:
prepare:
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- uses: actions/checkout@v3
- id: make-list
name: Prepare mini-program list
run: |
echo "dirs=$(ls -d */ | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT
outputs:
dirs: ${{ steps.make-list.outputs.dirs }}
client_go_0_26:
needs: prepare
strategy:
fail-fast: false
# A matrix can produce no more than 256 elements,
# so testing too many k8s versions is unfeasible.
matrix:
example_program: ${{ fromJson(needs.prepare.outputs.dirs) }}
k8s_cluster_ver:
- "1.26.14"
- "1.27.11"
- "1.28.7"
- "1.29.2"
uses: ./.github/workflows/test-one.yml
with:
example_program: ${{ matrix.example_program }}
k8s_cluster_ver: ${{ matrix.k8s_cluster_ver }}
k8s_package_ver: "0.26.13"
client_go_0_27:
needs: prepare
strategy:
fail-fast: false
# A matrix can produce no more than 256 elements,
# so testing too many k8s versions is unfeasible.
matrix:
example_program: ${{ fromJson(needs.prepare.outputs.dirs) }}
k8s_cluster_ver:
- "1.26.14"
- "1.27.11"
- "1.28.7"
- "1.29.2"
uses: ./.github/workflows/test-one.yml
with:
example_program: ${{ matrix.example_program }}
k8s_cluster_ver: ${{ matrix.k8s_cluster_ver }}
k8s_package_ver: "0.27.10"
client_go_0_28:
needs: prepare
strategy:
fail-fast: false
# A matrix can produce no more than 256 elements,
# so testing too many k8s versions is unfeasible.
matrix:
example_program: ${{ fromJson(needs.prepare.outputs.dirs) }}
k8s_cluster_ver:
- "1.26.14"
- "1.27.11"
- "1.28.7"
- "1.29.2"
uses: ./.github/workflows/test-one.yml
with:
example_program: ${{ matrix.example_program }}
k8s_cluster_ver: ${{ matrix.k8s_cluster_ver }}
k8s_package_ver: "0.28.6"
client_go_0_29:
needs: prepare
strategy:
fail-fast: false
# A matrix can produce no more than 256 elements,
# so testing too many k8s versions is unfeasible.
matrix:
example_program: ${{ fromJson(needs.prepare.outputs.dirs) }}
k8s_cluster_ver:
- "1.26.14"
- "1.27.11"
- "1.28.7"
- "1.29.2"
uses: ./.github/workflows/test-one.yml
with:
example_program: ${{ matrix.example_program }}
k8s_cluster_ver: ${{ matrix.k8s_cluster_ver }}
k8s_package_ver: "0.29.1"