Skip to content

Commit a4be132

Browse files
authored
deps: Update to kube v0.87 and k8s-openapi v0.20 (#80)
* deps: Update to kube v0.87 and k8s-openapi v0.20 This update features changes to the kube::CustomResource interface. * Test k8s 1.22 and 1.28
1 parent 69ffbb8 commit a4be132

File tree

7 files changed

+13
-15
lines changed

7 files changed

+13
-15
lines changed

.github/workflows/integration.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,8 @@ jobs:
2525
strategy:
2626
matrix:
2727
k8s:
28-
- v1.21
29-
- v1.25
30-
- v1.26
31-
- v1.27
28+
- v1.22
29+
- v1.28
3230
timeout-minutes: 10
3331
runs-on: ubuntu-latest
3432
env:

Cargo.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ default = []
1616
experimental = []
1717

1818
[dependencies]
19-
kube = { version = "0.85", default-features = false, features = ["derive"] }
20-
k8s-openapi = { version = "0.19", features = ["schemars"] }
19+
kube = { version = "0.87", default-features = false, features = ["derive"] }
20+
k8s-openapi = { version = "0.20", features = ["schemars"] }
2121
schemars = { version = "0.8", features = ["derive"] }
2222
serde = { version = "1", features = ["derive"] }
2323
serde_json = "1"
2424
thiserror = "1"
2525

2626
[dev-dependencies.k8s-openapi]
27-
version = "0.19"
27+
version = "0.20"
2828
default-features = false
29-
features = ["v1_27"]
29+
features = ["latest"]
3030

3131
[package.metadata.docs.rs]
3232
rustdoc-args = ["--cfg", "docsrs"]
33-
features = ["experimental", "k8s-openapi/v1_27"]
33+
features = ["experimental", "k8s-openapi/latest"]

integration/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ license = "Apache-2.0"
66
publish = false
77

88
[dev-dependencies]
9-
k8s-openapi = { version = "0.19", features = ["v1_27"] }
9+
k8s-openapi = { version = "0.20", features = ["latest"] }
1010
tokio = { version = "1", features = ["macros", "rt"] }
1111
tracing = "0.1"
1212
k8s-gateway-api = { path = ".." }
1313

1414
[dev-dependencies.kube]
15-
version = "0.85"
15+
version = "0.87"
1616
default-features = false
1717
features = ["client", "openssl-tls", "runtime", "ws"]

src/exp/tcproute.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use crate::*;
1010
group = "gateway.networking.k8s.io",
1111
version = "v1alpha2",
1212
kind = "TCPRoute",
13-
struct = "TcpRoute",
13+
root = "TcpRoute",
1414
status = "TcpRouteStatus",
1515
namespaced
1616
)]

src/exp/tlsroute.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use crate::*;
1313
group = "gateway.networking.k8s.io",
1414
version = "v1alpha2",
1515
kind = "TLSRoute",
16-
struct = "TlsRoute",
16+
root = "TlsRoute",
1717
status = "TlsRouteStatus",
1818
namespaced
1919
)]

src/exp/udproute.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use crate::*;
77
group = "gateway.networking.k8s.io",
88
version = "v1alpha2",
99
kind = "UDPRoute",
10-
struct = "UdpRoute",
10+
root = "UdpRoute",
1111
status = "UdpRouteStatus",
1212
namespaced
1313
)]

src/httproute.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use crate::*;
1717
group = "gateway.networking.k8s.io",
1818
version = "v1",
1919
kind = "HTTPRoute",
20-
struct = "HttpRoute",
20+
root = "HttpRoute",
2121
status = "HttpRouteStatus",
2222
namespaced
2323
)]

0 commit comments

Comments
 (0)