Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to Kubernetes 1.28 #16

Merged
merged 11 commits into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: test
on:
pull_request:

env:
RUST_BACKTRACE: 1

# Spend CI time only on latest ref: https://docs.github.com/en/actions/using-jobs/using-concurrency
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
unit:
strategy:
# Prevent GitHub from cancelling all in-progress jobs when a matrix job fails.
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
override: true
toolchain: stable
profile: minimal
# Smart caching for Rust projects.
# Includes workaround for macos cache corruption.
# - https://github.com/rust-lang/cargo/issues/8603
# - https://github.com/actions/cache/issues/403
- uses: Swatinem/rust-cache@v2

# Real CI work starts here
- name: Build workspace
run: cargo build

- name: Run workspace unit tests
run: cargo test --workspace --lib
- name: Run workspace doc tests
run: cargo test --workspace --doc
if: false # currently go doc generates stuff that rust expects to be valid symbols
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION := "1.22.0"
VERSION := "1.28.4"

default:
@just --list
Expand All @@ -10,7 +10,7 @@ protos-dl:
cd k8s-pb-codegen
rm -rf protos && mkdir protos && cd protos
for x in api apimachinery apiextensions-apiserver kube-aggregator metrics; do
mkdir ./$x -p
mkdir -p ./$x
curl -sSL https://github.com/kubernetes/$x/archive/refs/tags/kubernetes-{{VERSION}}.tar.gz | tar xzf - -C ./$x/ --strip-components=1
fd -e proto -x sh -c "mkdir -p k8s.io/'{//}'; mv '{}' k8s.io/'{}'" ';' . ./$x
rm -rf ./$x
Expand Down
60,202 changes: 22,362 additions & 37,840 deletions k8s-pb-codegen/openapi/swagger.json

Large diffs are not rendered by default.

Loading
Loading