From 52d29fb5a938cafa5cb54539e4ebce9c90feec3d Mon Sep 17 00:00:00 2001 From: Jiji Freya Daniel Maslowski Date: Wed, 24 Jun 2026 13:51:48 +0200 Subject: [PATCH] remove features from k8s-openapi dependency Library crates must not enable k8s-openapi features. The eventual app/operator needs to be able to select their own version. See . For CI, use the `K8S_OPENAPI_ENABLED_VERSION` env var. Signed-off-by: Jiji Freya Daniel Maslowski --- .github/workflows/test.yaml | 6 +++--- Cargo.toml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 4d11327..edb6a04 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -8,12 +8,12 @@ jobs: - uses: actions/setup-go@v6 with: go-version-file: 'go/go.mod' - - run: cargo build - - run: cargo t + - run: K8S_OPENAPI_ENABLED_VERSION=latest cargo build + - run: K8S_OPENAPI_ENABLED_VERSION=latest cargo t docs-test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 - uses: dtolnay/rust-toolchain@nightly - uses: dtolnay/install@cargo-docs-rs - - run: cargo docs-rs + - run: K8S_OPENAPI_ENABLED_VERSION=latest cargo docs-rs diff --git a/Cargo.toml b/Cargo.toml index 85a7304..7cb4ca3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ rust2go = { version = "0.4.3", optional = true} serde = "1" serde_json = "1" thiserror = "2" -k8s-openapi = { version = "0.28", features = ["latest"], optional = true } +k8s-openapi = { version = "0.28", optional = true } kube = { version = "4", optional = true } smol = "2.0.2"