### Get minimum AKS version Source: https://github.com/arnavion/k8s-openapi/blob/master/CONTRIBUTING.md Finds the lowest Kubernetes version supported by Azure AKS across all locations. Uses parallel subshells to query each location and then sorts the results. Requires the Azure CLI and appropriate permissions. ```sh az account list-locations --query '[].name' --output tsv | while read -r location; do (/dev/null) & : done | sort --version-sort | head -1 ``` -------------------------------- ### Create cluster and run tests in record mode Source: https://github.com/arnavion/k8s-openapi/blob/master/CONTRIBUTING.md Creates a cluster and runs tests in record mode for a new minor version. Replace '...' with the version and provide a node images directory. ```sh ./test.sh '...' create-node-image /path/of/node/images/directory ./test.sh '...' create-cluster /path/of/node/images/directory K8S_RECORD=1 ./test.sh '...' run-tests ``` -------------------------------- ### Run all tests with test.sh Source: https://github.com/arnavion/k8s-openapi/blob/master/k8s-openapi-tests-macro-deps/README.md Use this shell script to run the full test suite. It creates node images, creates clusters, runs tests in record mode, deletes clusters, and runs tests in replay mode. Requires the KIND_IMAGES directory to be set and created. ```sh # Create all node images KIND_IMAGES="$(realpath ~/kind-images)" mkdir -p "$KIND_IMAGES" ./test.sh all create-node-image "$KIND_IMAGES" # Create all clusters ./test.sh all create-cluster "$KIND_IMAGES" # Run all tests in record mode K8S_RECORD=1 ./test.sh all run-tests # Delete all clusters ./test.sh all delete-cluster # Run all tests in replay mode ./test.sh all run-tests ``` -------------------------------- ### Run all tests with test.sh Source: https://github.com/arnavion/k8s-openapi/blob/master/CONTRIBUTING.md Runs the full test suite across all supported Kubernetes versions. Creates node images and clusters, runs tests in record mode, deletes clusters, then runs tests in replay mode. ```sh KIND_IMAGES="$(realpath ~/kind-images)" mkdir -p "$KIND_IMAGES" ./test.sh all create-node-image "$KIND_IMAGES" # Create all clusters ./test.sh all create-cluster "$KIND_IMAGES" # Run all tests in record mode K8S_RECORD=1 ./test.sh all run-tests # Delete all clusters ./test.sh all delete-cluster # Run all tests in replay mode ./test.sh all run-tests ``` -------------------------------- ### Generate docs for release Source: https://github.com/arnavion/k8s-openapi/blob/master/CONTRIBUTING.md Generates documentation for the main crate and its sub-crates, then copies the output to the gh-pages directory. Requires a nightly Rust toolchain for the -Z unstable-options flag. The version directory (v0.28.x) must be adjusted to match the release. ```sh rm -rf ./target/doc/ && cargo rustdoc --features 'latest' -- -A 'rustdoc::bare_urls' -Z unstable-options --enable-index-page && CARGO_TARGET_DIR="$(realpath ./target)" cargo rustdoc --manifest-path ./k8s-openapi-codegen-common/Cargo.toml -- -Z unstable-options --enable-index-page && CARGO_TARGET_DIR="$(realpath ./target)" cargo rustdoc --manifest-path ./k8s-openapi-derive/Cargo.toml -- -Z unstable-options --enable-index-page && rm -rf ../k8s-openapi-gh-pages/v0.28.x && cp -R ./target/doc ../k8s-openapi-gh-pages/v0.28.x ``` -------------------------------- ### Delete cluster and run tests in replay mode Source: https://github.com/arnavion/k8s-openapi/blob/master/CONTRIBUTING.md Deletes the cluster and runs tests in replay mode for a new minor version. Replace '...' with the version. ```sh ./test.sh '...' delete-cluster ./test.sh '...' run-tests ``` -------------------------------- ### Generate bindings with cargo run Source: https://github.com/arnavion/k8s-openapi/blob/master/k8s-openapi-codegen/README.md Generates Rust bindings for Kubernetes resources and operations into the parent directory. Use `cargo run -- --help` for advanced command-line options. ```sh cargo run ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.