Skip to content

Commit

Permalink
fix: Fix warning log in kube-rs crate by upgrading to 0.77
Browse files Browse the repository at this point in the history
And remove self maintained dependencies
- kube-rs
- openshift-openapi
  • Loading branch information
rvql authored and sharang committed Oct 15, 2024
1 parent 54835e9 commit 7d8d986
Show file tree
Hide file tree
Showing 4 changed files with 239 additions and 94 deletions.
108 changes: 54 additions & 54 deletions agent/Cargo.lock

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

14 changes: 6 additions & 8 deletions agent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ exclude = [
]

[workspace.dependencies]
k8s-openapi = { version = "0.16", features = ["v1_19", "schemars"] }
kube = { version = "0.77", default-features = false }
prost = "0.11"

[dependencies]
Expand Down Expand Up @@ -108,22 +110,18 @@ procfs = { git = "https://github.com/deepflowio/procfs/" }
reorder = { path = "plugins/reorder" }

[target.'cfg(target_os = "linux")'.dependencies]
k8s-openapi = { version = "^0.15", features = ["v1_19", "schemars"] }
kube = { version = "0.74", default-features = false, features = [
k8s-openapi.workspace = true
kube = { workspace = true, features = [
"client",
"derive",
"runtime",
"rustls-tls",
] }
kube-derive = "0.74"
openshift-openapi = { version = "0.3.1", features = ["v4_6"] }
kube-derive = "0.77"
openshift-openapi = { version = "0.3.1", features = ["v4_5"] }
schemars = "0.8"
trace-utils = { path = "crates/trace-utils" }

[patch.crates-io]
kube = { git = "https://github.com/deepflowio/kube", tag = "0.74.2" }
openshift-openapi = { git = "https://github.com/deepflowio/openshift-openapi.git" }

[target.'cfg(target_os = "windows")'.dependencies]
pcap = "0.10.1"
winapi = { version = "0.3.9", features = [
Expand Down
4 changes: 2 additions & 2 deletions agent/crates/public/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ thiserror = "1.0"
tonic = "0.8.1"

[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies]
k8s-openapi = { version = "^0.15", features = ["v1_19", "schemars"] }
kube = { version = "0.74", default-features = false, features = ["client"] }
k8s-openapi.workspace = true
kube = { workspace = true, features = ["client"] }
neli = "0.6.4"
nix = "0.23"

Expand Down
Loading

0 comments on commit 7d8d986

Please sign in to comment.