small-hack / smol-k8s-lab

☁️ CLI & TUI with a smol friendly vibe to get started with Kubernetes on metal, then bootstrap apps using Argo CD 🧸 Great for testing webapps and benchmarking.
https://small-hack.github.io/smol-k8s-lab/
GNU Affero General Public License v3.0
12 stars 1 forks source link

Add sync option to apps in the TUI; fix select bug where distro became 'worker' #184

Closed jessebot closed 3 months ago

jessebot commented 3 months ago

This also fixes the node deprecation error from the bw cli.

Quick run through of new feature:

https://github.com/small-hack/smol-k8s-lab/assets/2389292/deefc6ff-116c-41a8-a4d4-75ae6575a749

There are no captions above, but as a quick transcript, I note that after you have an existing cluster, if you click it, then select the modify button, you will go to the apps screen. From the apps screen, if an app is enabled, in the app input panel on the right, in the bottom right corner of the border, there will now be a "🔁 sync" button. If you click that button, it will sync your Argo CD app if it already exists, and then it will output the result into a notification that can be clicked to make it go away. I also note in the video that in the future, I'd like apps that haven't been installed to have an install button, so you can install new apps directly via the tui instead having to click through to the cli run. Thanks!