rancher / dashboard

The Rancher UI
https://rancher.com
Apache License 2.0
454 stars 257 forks source link

Rancher provisioned/managed RKE2/K3s data-dir support #11061

Closed jakefhyde closed 2 months ago

jakefhyde commented 4 months ago

There is currently an ongoing effort to support specifying the RKE2/K3s data-dir argument, which allows a user to change it from the default of /var/lib/rancher/rke2 & /var/lib/rancher/k3s respectively, to a user provided directory. I've found the following instances of these directories hardcoded within the project:

richard-cox commented 4 months ago

Note - Additional work on top of https://github.com/rancher/dashboard/issues/10824.

The referenced ui code was the only place i found that contained either string

@jakefhyde In places like this what would be the alternative, Would whatever consumes that value have to lookup the root directly given the custom data-dir setting?

Edit: And nice catch!

jakefhyde commented 4 months ago

@richard-cox That's a good catch, I'm leaning towards we should always populate this field, since if the setting changed we wouldn't want to update all the clusters. I'll bring this up with the team and sync up with @mattfarina to make sure that won't have any downsides.

IsaSih commented 2 months ago

tested on v2.9.0-rc3. Validated with @noahgildersleeve and the UI is sending the payload as expected

Image