🐛 Selecting "New Cluster" causes distro section of configfile to be overwritten #132
Labels
No labels
🐛 bug
DO THE THING >:(
blocked
dependencies
k3s
kind
openbao
question
secrets
wontfix
✨ enhancement
🌱good first issue
📓documentation
📕kyverno
🔐 Bitwarden
🙋help wanted
🦩 MinIO
🧸 🧸 Duplicate
🩹 Bug Fix
🪠 CICD
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
small-hack/smol-k8s-lab#132
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the Bug
As a user with a k3s config that has lots of kubelet args, I prefer to configure all of them via the config file like so:
When I launch the TUI and select "New Cluster", my config file is overwritten to the following:
However there is no issue if only using the cli
Steps to Reproduce Bug
Expected behavior
I would assume that the data from the config file would be loaded into the tui on init
User info (please complete the following information):
Debian12k3ssmol-k8s-lab: v2.0.0Thanks for reporting this! I'll take a look tonight!
fixing in #133
Unfortunately it's only mostly fixed, options that contain more than one comma get split prematurely:|
ok, so this is going to require a second section for kubelet args to get this under control for k3s. Allow me a day or so to work on this as I need to add a tab to the k3s tui screen to fix this.
ok, I've got most of this done in #135. I just need to fix this add new k3s option button and figure out another bug with the kubelet args duplicating. See screenshots below for current status:
ok, fixed that issue, now just need to fix an issue to allow there to be multiple distros enabled at once, as right now, we assume you're launching either one cluster, or many clusters using kind or k3d. I want to add
k8s_distros.selected:and then we can use the "selected" field, instead of the
k8s_distros.DISTRO.enabledfield, as the selected is really just for the current operations via the tui or cli, and enabled is relative to the OS (e.g. k3s doesn't work on macOS yet). After that's fixed, I'll regenerate screenshots and cut a new release :)so scratch this, I don't actually think it's necessary :) The issue was actually that I was querying a widget incorrectly after using multiple times. I was using
self.query_onewhen I needed to useself.get_widget_by_idbecause we use the same kubelet widget for all distros now. Just finishing up testing now!