Skip to content

Commit

Permalink
feat: support k8s-openapi feautes
Browse files Browse the repository at this point in the history
  • Loading branch information
yoogoc committed Apr 24, 2024
1 parent 5dfd165 commit 71657cf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 14 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "tonic-lb"
version = "0.0.1"
version = "0.0.2"
edition = "2021"
description = "A Grpc name resolver for tonic"
license = "MIT"
homepage = "https://github.com/yoogoc/tonic-lb"
repository = "https://github.com/yoogoc/tonic-lb"
keywords = ["tonic", "loadbalance", "kube", "kubernetes"]
keywords = ["tonic", "loadbalance", "kube", "kubernetes", "async", "api", "web"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand All @@ -15,7 +15,18 @@ kube = { version = "0.90.0", features = ["runtime", "client", "derive"] }
tokio = "1.37.0"
tonic = "0.11.0"
tower = "0.4.13"
k8s-openapi = { version = "0.21.1", features = ["latest"] }
k8s-openapi = { version = "0.21.1", default-features = false }
futures = "0.3.30"
thiserror = "1.0.58"
anyhow = "1.0.82"

[features]
default = ["kube-latest"]
kube-earliest=["k8s-openapi/earliest"]
kube-latest=["k8s-openapi/latest"]
kube-v1_24=["k8s-openapi/v1_24"]
kube-v1_25=["k8s-openapi/v1_25"]
kube-v1_26=["k8s-openapi/v1_26"]
kube-v1_27=["k8s-openapi/v1_27"]
kube-v1_28=["k8s-openapi/v1_28"]
kube-v1_29=["k8s-openapi/v1_29"]

0 comments on commit 71657cf

Please sign in to comment.