Skip to content

Commit

Permalink
Http proxy support (metalbear-co#2090)
Browse files Browse the repository at this point in the history
* Switched to kube-rs fork

* Changelog entry

* Compilation fix

* Depend on the metalbear-co fork

---------

Co-authored-by: t4lz <[email protected]>
  • Loading branch information
Razz4780 and t4lz authored Dec 4, 2023
1 parent 483f818 commit c7f9327
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 18 deletions.
75 changes: 58 additions & 17 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ futures = "0.3"
thiserror = "1"
k8s-openapi = { version = "0.20", features = ["v1_24"] }
reqwest = { version = "0.11", default-features = false, features = ["blocking", "rustls-tls", "json"] }
kube = { git = "https://github.com/aviramha/kube-rs", branch = "metalbear", default-features = false, features = ["runtime", "derive", "client", "ws", "rustls-tls", "oidc", "socks5"] }
kube = { git = "https://github.com/metalbear-co/kube", default-features = false, features = ["runtime", "derive", "client", "ws", "rustls-tls", "oidc", "socks5", "http_proxy"] }
trust-dns-resolver = { version = "0.22", features = ["serde-config", "tokio-runtime"] }
tokio-util = { version = "0.7", features = ["net", "codec"] }
rand = "0.8"
Expand Down
1 change: 1 addition & 0 deletions changelog.d/2087.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added support for connecting to the cluster with an HTTP proxy.
2 changes: 2 additions & 0 deletions tests/src/pause.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ mod pause {
since_seconds: None,
tail_lines: None,
timestamps: false,
since_time: None,
};

println!("getting log stream.");
Expand Down Expand Up @@ -210,6 +211,7 @@ mod pause {
since_seconds: None,
tail_lines: None,
timestamps: false,
since_time: None,
};

println!("getting log stream.");
Expand Down
2 changes: 2 additions & 0 deletions tests/src/traffic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ mod traffic {
since_seconds: None,
tail_lines: None,
timestamps: false,
since_time: None,
};

let node_command = vec![
Expand Down Expand Up @@ -249,6 +250,7 @@ mod traffic {
since_seconds: None,
tail_lines: None,
timestamps: false,
since_time: None,
};

let node_command = vec![
Expand Down

0 comments on commit c7f9327

Please sign in to comment.