-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change introduces a new `experimental` feature that gates the availability of experimental types that are not in the *v1beta1* API. Also: * ci: Integration tests are split into a separate workflow; * ci: A markdown workflow is added; * The API version is removed from the module path; * experimental: `ReferencePolicy` is renamed to `ReferenceGrant` Signed-off-by: Oliver Gould <ver@buoyant.io>
- Loading branch information
Showing
21 changed files
with
157 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: integration | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- Cargo.toml | ||
- '**/*.rs' | ||
- .github/workflows/integration.yml | ||
|
||
permissions: | ||
contents: read | ||
|
||
env: | ||
CARGO_INCREMENTAL: 0 | ||
CARGO_NET_RETRY: 10 | ||
RUSTUP_MAX_RETRIES: 10 | ||
RUST_VERSION: 1.60.0 | ||
K3D_VERSION: v5.4.1 | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
k8s: | ||
- v1.21 | ||
- v1.23 | ||
timeout-minutes: 5 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install rust | ||
run: | | ||
rm -rf $HOME/.cargo | ||
curl --proto =https --tlsv1.3 -fLsSv https://sh.rustup.rs | sh -s -- -y --default-toolchain "${RUST_VERSION}" | ||
source $HOME/.cargo/env | ||
echo "PATH=$PATH" >> $GITHUB_ENV | ||
cargo version | ||
# Setup a cluster | ||
- run: curl --proto =https --tlsv1.3 -fLsSv https://raw.githubusercontent.com/k3d-io/k3d/${K3D_VERSION}/install.sh | bash | ||
- run: k3d --version | ||
- run: k3d cluster create --no-lb --k3s-arg '--no-deploy=local-storage,traefik,servicelb,metrics-server@server:*' --image +${{ matrix.k8s }} | ||
- run: kubectl version | ||
# Install CRDs | ||
- uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748 | ||
with: | ||
repository: kubernetes-sigs/gateway-api | ||
ref: 3f4b981dd6669f67398d753a6f278b241d669953 # 0.5.0-dev | ||
path: gateway-api | ||
- run: kubectl apply -k gateway-api/config/crd/experimental/ | ||
# Setup just | ||
- uses: extractions/setup-just@aa5d15c144db4585980a44ebfdd2cf337c4f14cb | ||
- uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748 | ||
# Run tests | ||
- run: just fetch | ||
- run: just test-build --package=integration | ||
- run: just test --package=integration | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: markdown | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- '**/*.md' | ||
- .github/workflows/markdown.yml | ||
|
||
jobs: | ||
markdownlint: | ||
timeout-minutes: 5 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b | ||
- uses: DavidAnson/markdownlint-cli2-action@744f913a124058ee903768d3adb92a4847e5d132 | ||
with: | ||
globs: | | ||
**/*.md | ||
!target/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
# k8s-gateway-api | ||
|
||
(Unofficial) Rust bindings for the [Kubernetes Gateway API][ref]. | ||
(Unofficial) Rust bindings for the [Kubernetes Gateway API][site]. | ||
|
||
Based on <https://github.com/kubernetes-sigs/gateway-api/releases/tag/v0.4.3>. | ||
Based on [gateway-api-v0.5.0-dev]. | ||
|
||
[![Crates.io][crate-badge]][crate-url] | ||
[![Documentation][docs-badge]][docs-url] | ||
[![License][lic-badge]](LICENSE) | ||
|
||
[crate-badge]: https://img.shields.io/crates/v/k8s-gateway-api.svg | ||
[crate-url]: https://crates.io/crates/k8s-gateway-api | ||
[docs-badge]: https://docs.rs/k8s-gateway-api/badge.svg | ||
[docs-url]: https://docs.rs/k8s-gateway-api | ||
[docs-url]: https://img.shields.io/crates/l/k8s-gateway-api | ||
[lic-badge]: https://img.shields.io/crates/l/k8s-gateway-api | ||
|
||
## Status | ||
|
||
This crate is experimental. | ||
|
||
It defines all of the v1alpha2 Gateway API types with documentation. | ||
It defines all of the *v1beta1* Gateway API types with documentation, as well as | ||
the *v1alpha2* types when the `experimental` feature is enabled. | ||
|
||
### TODO | ||
|
||
* Express validation constraints | ||
* Rustify/Linkify documentation | ||
* Support Linkerd-specific extensions (via feature flag). | ||
|
||
[ref]: https://gateway-api.sigs.k8s.io/ | ||
[gateway-api-v0.5.0-dev]: https://github.com/kubernetes-sigs/gateway-api/tree/4f86f0bd65173b04dadb558f63fbbd53330736d2 | ||
[site]: https://gateway-api.sigs.k8s.io/ | ||
[crate-badge]: https://img.shields.io/crates/v/k8s-gateway-api.svg | ||
[crate-url]: https://crates.io/crates/k8s-gateway-api | ||
[docs-badge]: https://docs.rs/k8s-gateway-api/badge.svg | ||
[docs-url]: https://docs.rs/k8s-gateway-api | ||
[docs-url]: https://img.shields.io/crates/l/k8s-gateway-api | ||
[lic-badge]: https://img.shields.io/crates/l/k8s-gateway-api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.