Skip to content

Commit

Permalink
feat: export configs with pretty json (#301)
Browse files Browse the repository at this point in the history
* feat: export configs with pretty json

* chore: new version

* chore: new version

* chore: new version
  • Loading branch information
hcavarsan authored Sep 8, 2024
1 parent 379e834 commit 0239388
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 16 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ KFtray and KFtui solve these issues by being more reliable and easier to use. Th
- **Multi-Protocol Support:** Enables access to internal or external servers through a Proxy Relay server deployed in a Kubernetes cluster, including TCP and UDP port forwarding.
- **HTTP Logs Tracing:** Enable or disable HTTP logs for specific configurations to save the requests and responses in a local log file. _(Currently available only in the KFtray desktop app)_ - [Blog Post](https://kftray.app/blog/posts/6-debug-http-traffics-kftray)
- **GitHub Sync:** Keep your configurations saved on GitHub and share or synchronize them in a GitOps style. _(Currently available only in the KFtray desktop app)_
- **Auto Import:** Automatically import Kubernetes service configurations based on specific annotations.

## 🗂 Features Matrix

Expand All @@ -81,6 +82,7 @@ KFtray and KFtui solve these issues by being more reliable and easier to use. Th
| HTTP Logs Tracing | ✔️ | ❌ (Coming Soon) |
| GitHub Sync | ✔️ | ❌ (Coming Soon) |
| Local JSON File Configuration | ✔️ | ✔️ |
| Auto Import with k8s Annotations | ✔️ | ✔️ |

</div>

Expand Down
2 changes: 1 addition & 1 deletion crates/kftray-commons/src/utils/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ pub async fn export_configs() -> Result<String, String> {
let default_config = serde_json::to_value(Config::default()).map_err(|e| e.to_string())?;
remove_blank_or_default_fields(&mut json_config, &default_config);

let json = serde_json::to_string(&json_config).map_err(|e| e.to_string())?;
let json = serde_json::to_string_pretty(&json_config).map_err(|e| e.to_string())?;

Ok(json)
}
Expand Down
2 changes: 1 addition & 1 deletion crates/kftray-server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kftray-server"
version = "0.13.3"
version = "0.14.0"
description = "KFtray Server is a Rust application that relays UDP/TCP traffic to an upstream server"
authors = [
"Henrique Cavarsan <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion crates/kftray-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kftray-tauri"
version = "0.13.3"
version = "0.14.0"
description = "A cross-platform system tray app for Kubernetes port-forward management"
authors = ["Henrique Cavarsan <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion crates/kftray-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"package": {
"productName": "kftray",
"version": "0.13.3"
"version": "0.14.0"
},
"tauri": {
"allowlist": {
Expand Down
4 changes: 2 additions & 2 deletions crates/kftui/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kftui"
version = "0.13.3"
version = "0.14.0"
description = "KFtray TUI is a Rust application that manage multiple kubectl port forward configurations"
authors = [
"Henrique Cavarsan <[email protected]>",
Expand Down Expand Up @@ -65,4 +65,4 @@ built = "0.7.4"


[build-dependencies]
built = "0.7"
built = "0.7"
12 changes: 6 additions & 6 deletions docs/kftray/INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,22 @@ Linux Note: due to GTK limitations, it is necessary to install and enable the GN
Download the latest release directly from GitHub:

<div align="left">
<a href="https://github.com/hcavarsan/kftray/releases/latest/download/kftray_0.13.3_universal.dmg">
<a href="https://github.com/hcavarsan/kftray/releases/latest/download/kftray_0.14.0_universal.dmg">
<img src="https://img.shields.io/badge/macOS-Universal-grey.svg?style=for-the-badge&logo=apple" alt="Download for macOS" />
</a>
<a href="https://github.com/hcavarsan/kftray/releases/latest/download/kftray_0.13.3_arm64-setup.exe">
<a href="https://github.com/hcavarsan/kftray/releases/latest/download/kftray_0.14.0_arm64-setup.exe">
<img src="https://img.shields.io/badge/Windows-ARM64-grey.svg?style=for-the-badge&logo=windows" alt="Download for Windows ARM64" />
</a>
<a href="https://github.com/hcavarsan/kftray/releases/latest/download/kftray_0.13.3_x64-setup.exe">
<a href="https://github.com/hcavarsan/kftray/releases/latest/download/kftray_0.14.0_x64-setup.exe">
<img src="https://img.shields.io/badge/Windows-x64-grey.svg?style=for-the-badge&logo=windows" alt="Download for Windows x64" />
</a>
<a href="https://github.com/hcavarsan/kftray/releases/latest/download/kftray_0.13.3_x86-setup.exe">
<a href="https://github.com/hcavarsan/kftray/releases/latest/download/kftray_0.14.0_x86-setup.exe">
<img src="https://img.shields.io/badge/Windows-x86-grey.svg?style=for-the-badge&logo=windows" alt="Download for Windows x86" />
</a>
<a href="https://github.com/hcavarsan/kftray/releases/latest/download/kftray_0.13.3_amd64.AppImage">
<a href="https://github.com/hcavarsan/kftray/releases/latest/download/kftray_0.14.0_amd64.AppImage">
<img src="https://img.shields.io/badge/Linux-x64-grey.svg?style=for-the-badge&logo=linux" alt="Download for Linux AMD64" />
</a>
<a href="https://github.com/hcavarsan/kftray/releases/latest/download/kftray_0.13.3_aarch64.AppImage">
<a href="https://github.com/hcavarsan/kftray/releases/latest/download/kftray_0.14.0_aarch64.AppImage">
<img src="https://img.shields.io/badge/Linux-ARM64-grey.svg?style=for-the-badge&logo=linux" alt="Download for Linux ARM64" />
</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kftray/ui",
"version": "0.13.3",
"version": "0.14.0",
"private": true,
"type": "module",
"scripts": {
Expand Down

0 comments on commit 0239388

Please sign in to comment.