Skip to content

Commit

Permalink
fix: get ssl dinamically from kubeconfig to client - kube api (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
hcavarsan committed Dec 28, 2023
1 parent fd2a6f3 commit 3624b1d
Show file tree
Hide file tree
Showing 4 changed files with 200 additions and 11 deletions.
166 changes: 166 additions & 0 deletions src-tauri/Cargo.lock

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

1 change: 1 addition & 0 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ rusqlite = { version = "0.30.0", features = ["bundled"] }
window-shadows = "0.2.2"
dirs = "5.0.1"
kubeforward = { path = "./utils/kubeforward" }
openssl-probe = "0.1.5"

hyper = { version = "0.14.27", features = [ "client", "http1", "http2", "tcp", "stream" ] }
log = "0.4"
Expand Down
9 changes: 8 additions & 1 deletion src-tauri/utils/kubeforward/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ edition = "2021"

[dependencies]
tauri = { version = "1.5", features = [ "api-all", "macos-private-api", "system-tray"] }
kube = { version = "0.85.0", features = [ "ws" ] }
reqwest = { version = "0.11", features = ["json", "rustls-tls"] }
kube = { version = "0.85.0", features = ["client", "config", "rustls-tls", "ws"] }
k8s-openapi = { version = "0.19.0", default-features = false, features = ["v1_20"] }
tokio = { version = "1.32.0", features = [ "full" ] }
tokio-stream = { version = "0.1.14", features = ["net"] }
Expand All @@ -21,6 +22,12 @@ lazy_static = "1.4.0"
serde = { version = "1.0", features = ["derive"] }
log = "0.4"
env_logger = "0.9"
rand = "0.8.4"
kube-runtime = "0.85.0"
tower = "0.4.11"

hyper-rustls = { version = "0.24", features = ["webpki-roots"] }


[dev-dependencies]
tracing-subscriber = { version = "0.3.17", features = [ "env-filter" ] }
Loading

0 comments on commit 3624b1d

Please sign in to comment.