Skip to content

Commit 87eddcd

Browse files
authored
fix: eks auth failed (#303)
* fix: eks auth failed * fix: eks auth failed * fix: eks auth failed
1 parent bc0c76d commit 87eddcd

File tree

8 files changed

+29
-16
lines changed

8 files changed

+29
-16
lines changed

Cargo.lock

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/kftray-portforward/src/client.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use std::collections::HashMap;
2+
use std::env;
23
use std::future::Future;
34
use std::path::PathBuf;
45
use std::pin::Pin;
@@ -72,6 +73,10 @@ type ServiceInfo = (String, HashMap<String, String>, HashMap<String, i32>);
7273
pub async fn create_client_with_specific_context(
7374
kubeconfig: Option<String>, context_name: Option<&str>,
7475
) -> Result<(Option<Client>, Option<Kubeconfig>, Vec<String>)> {
76+
// Remove PYTHONHOME and PYTHONPATH environment variables
77+
env::remove_var("PYTHONHOME");
78+
env::remove_var("PYTHONPATH");
79+
7580
let kubeconfig_paths = get_kubeconfig_paths_from_option(kubeconfig)?;
7681
let (merged_kubeconfig, all_contexts, mut errors) = merge_kubeconfigs(&kubeconfig_paths)?;
7782

crates/kftray-server/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "kftray-server"
3-
version = "0.14.1"
3+
version = "0.14.2"
44
description = "KFtray Server is a Rust application that relays UDP/TCP traffic to an upstream server"
55
authors = [
66
"Henrique Cavarsan <hencavarsan@gmail.com>",

crates/kftray-tauri/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "kftray-tauri"
3-
version = "0.14.1"
3+
version = "0.14.2"
44
description = "A cross-platform system tray app for Kubernetes port-forward management"
55
authors = ["Henrique Cavarsan <hencavarsan@gmail.com>"]
66
license = "MIT"

crates/kftray-tauri/tauri.conf.json

+11-3
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,22 @@
88
},
99
"package": {
1010
"productName": "kftray",
11-
"version": "0.14.1"
11+
"version": "0.14.2"
1212
},
1313
"tauri": {
1414
"allowlist": {
1515
"all": true,
1616
"shell": {
17-
"all": false,
18-
"open": true
17+
"all": true,
18+
"execute": true,
19+
"open": true,
20+
"scope": [
21+
{
22+
"args": true,
23+
"cmd": "aws",
24+
"name": "aws-cli"
25+
}
26+
]
1927
}
2028
},
2129
"bundle": {

crates/kftui/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "kftui"
3-
version = "0.14.1"
3+
version = "0.14.2"
44
description = "KFtray TUI is a Rust application that manage multiple kubectl port forward configurations"
55
authors = [
66
"Henrique Cavarsan <hencavarsan@gmail.com>",

docs/kftray/INSTALL.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,22 @@ Linux Note: due to GTK limitations, it is necessary to install and enable the GN
3232
Download the latest release directly from GitHub:
3333

3434
<div align="left">
35-
<a href="https://github.com/hcavarsan/kftray/releases/latest/download/kftray_0.14.1_universal.dmg">
35+
<a href="https://github.com/hcavarsan/kftray/releases/latest/download/kftray_0.14.2_universal.dmg">
3636
<img src="https://img.shields.io/badge/macOS-Universal-grey.svg?style=for-the-badge&logo=apple" alt="Download for macOS" />
3737
</a>
38-
<a href="https://github.com/hcavarsan/kftray/releases/latest/download/kftray_0.14.1_arm64-setup.exe">
38+
<a href="https://github.com/hcavarsan/kftray/releases/latest/download/kftray_0.14.2_arm64-setup.exe">
3939
<img src="https://img.shields.io/badge/Windows-ARM64-grey.svg?style=for-the-badge&logo=windows" alt="Download for Windows ARM64" />
4040
</a>
41-
<a href="https://github.com/hcavarsan/kftray/releases/latest/download/kftray_0.14.1_x64-setup.exe">
41+
<a href="https://github.com/hcavarsan/kftray/releases/latest/download/kftray_0.14.2_x64-setup.exe">
4242
<img src="https://img.shields.io/badge/Windows-x64-grey.svg?style=for-the-badge&logo=windows" alt="Download for Windows x64" />
4343
</a>
44-
<a href="https://github.com/hcavarsan/kftray/releases/latest/download/kftray_0.14.1_x86-setup.exe">
44+
<a href="https://github.com/hcavarsan/kftray/releases/latest/download/kftray_0.14.2_x86-setup.exe">
4545
<img src="https://img.shields.io/badge/Windows-x86-grey.svg?style=for-the-badge&logo=windows" alt="Download for Windows x86" />
4646
</a>
47-
<a href="https://github.com/hcavarsan/kftray/releases/latest/download/kftray_0.14.1_amd64.AppImage">
47+
<a href="https://github.com/hcavarsan/kftray/releases/latest/download/kftray_0.14.2_amd64.AppImage">
4848
<img src="https://img.shields.io/badge/Linux-x64-grey.svg?style=for-the-badge&logo=linux" alt="Download for Linux AMD64" />
4949
</a>
50-
<a href="https://github.com/hcavarsan/kftray/releases/latest/download/kftray_0.14.1_aarch64.AppImage">
50+
<a href="https://github.com/hcavarsan/kftray/releases/latest/download/kftray_0.14.2_aarch64.AppImage">
5151
<img src="https://img.shields.io/badge/Linux-ARM64-grey.svg?style=for-the-badge&logo=linux" alt="Download for Linux ARM64" />
5252
</a>
5353
</div>

frontend/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kftray/ui",
3-
"version": "0.14.1",
3+
"version": "0.14.2",
44
"private": true,
55
"type": "module",
66
"scripts": {

0 commit comments

Comments
 (0)