|
13 | 13 | rustfmt +nightly --edition 2021 $(find . -type f -iname *.rs)
|
14 | 14 |
|
15 | 15 | doc:
|
16 |
| - RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --lib --workspace --features=derive,ws,oauth,jsonpatch,client,derive,runtime,admission,k8s-openapi/v1_23 --open |
| 16 | + RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --lib --workspace --features=derive,ws,oauth,jsonpatch,client,derive,runtime,admission,k8s-openapi/v1_24 --open |
17 | 17 |
|
18 | 18 | # Unit tests
|
19 | 19 | test:
|
|
72 | 72 | --k3s-arg '--kubelet-arg=eviction-hard=imagefs.available<1%,nodefs.available<1%@agent:*' \
|
73 | 73 | --k3s-arg '--kubelet-arg=eviction-minimum-reclaim=imagefs.available=1%,nodefs.available=1%@agent:*'
|
74 | 74 |
|
| 75 | +# Bump the msrv of kube; "just bump-msrv 1.60.0" |
| 76 | +bump-msrv msrv: |
| 77 | + #!/usr/bin/env bash |
| 78 | + oldmsrv="$(rg "rust-version = \"(.*)\"" -r '$1' kube/Cargo.toml)" |
| 79 | + fastmod -m -d . --extensions toml "rust-version = \"$oldmsrv\"" "rust-version = \"{{msrv}}\"" |
| 80 | + # sanity |
| 81 | + if [[ $(cat ./*/Cargo.toml | grep "rust-version" | uniq | wc -l) -gt 1 ]]; then |
| 82 | + echo "inconsistent rust-version keys set in various kube-crates:" |
| 83 | + rg "rust-version" ./*/Cargo.toml |
| 84 | + exit 1 |
| 85 | + fi |
| 86 | + fullmsrv="{{msrv}}" |
| 87 | + shortmsrv="${fullmsrv::-2}" # badge can use a short display version |
| 88 | + badge="[](https://github.com/rust-lang/rust/releases/tag/{{msrv}})" |
| 89 | + sd "^.+badge/MSRV.+$" "${badge}" README.md |
| 90 | + sd "${oldmsrv}" "{{msrv}}" .devcontainer/Dockerfile |
| 91 | + cargo msrv |
| 92 | + |
| 93 | +# Increment the Kubernetes feature version from k8s-openapi for tests; "just bump-k8s" |
75 | 94 | bump-k8s:
|
76 | 95 | #!/usr/bin/env bash
|
77 | 96 | current=$(cargo tree --format "{f}" -i k8s-openapi | head -n 1)
|
78 | 97 | next=${current::-2}$((${current:3} + 1))
|
79 | 98 | fastmod -m -d . --extensions toml "$current" "$next"
|
80 |
| - fastmod -m README.md "$current" "$next" |
| 99 | + fastmod -m "$current" "$next" -- README.md |
| 100 | + fastmod -m "$current" "$next" -- justfile |
81 | 101 |
|
82 | 102 | # mode: makefile
|
83 | 103 | # End:
|
|
0 commit comments