Skip to content

dev: v42

dev: v42 #313

Workflow file for this run

name: client
on:
pull_request:
paths:
- "**/Cargo.toml"
- "**/*.rs"
- justfile
- .github/workflows/client.yml
permissions:
contents: read
env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUST_VERSION: 1.64.0
RUSTUP_MAX_RETRIES: 10
KUBERT_TEST_NS: kubert-test
jobs:
local:
strategy:
matrix:
k8s:
- v1.21
- v1.26
tls:
- openssl-tls
- rustls-tls
name: local (k8s ${{ matrix.k8s }}, ${{ matrix.tls }})
timeout-minutes: 30 # building with OpenSSL can be quite slow...
runs-on: ubuntu-latest
env:
KUBERT_TEST_CLUSTER_VERSION: ${{ matrix.k8s }}
steps:
- uses: linkerd/dev/actions/setup-tools@v42
- uses: linkerd/dev/actions/setup-rust@v42
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
- run: just fetch
- run: just --set features ${{ matrix.tls }} build-examples
- run: just --set features ${{ matrix.tls }} test-cluster-create
- run: just --set features ${{ matrix.tls }} test-cluster-run-watch-pods --log-level=debug
- run: just --set features ${{ matrix.tls }} test-cluster-create-ns
- name: Run just test-cluster-run-watch-pods with impersonation
run: |
just --set features ${{ matrix.tls }} \
test-cluster-run-watch-pods \
--log-level=debug \
--as=system:serviceaccount:${KUBERT_TEST_NS}:watch-pods \
--kubeconfig=$HOME/.kube/config
- run: just --set features ${{ matrix.tls }} test-lease-build
- run: just --set features ${{ matrix.tls }} test-lease
in-cluster:
strategy:
matrix:
k8s:
- v1.21
- v1.26
tls:
- openssl-tls
- rustls-tls
name: in-cluster (k8s ${{ matrix.k8s }}, ${{ matrix.tls }})
timeout-minutes: 15
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
KUBERT_TEST_CLUSTER_VERSION: ${{ matrix.k8s }}
steps:
- uses: linkerd/dev/actions/setup-tools@v42
- uses: linkerd/dev/actions/setup-rust@v42
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
- run: just --set features ${{ matrix.tls }} build-examples-image
- run: just --set features ${{ matrix.tls }} test-cluster-create
- run: just --set features ${{ matrix.tls }} test-cluster-import-examples
- run: just --set features ${{ matrix.tls }} test-cluster-create-ns
- run: just --set features ${{ matrix.tls }} test-cluster-deploy-watch-pods --log-level=debug