rancher / dashboard

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

RKE2 cluster provision: Data Directories enhancement in the Advanced tab #12405

Open aalves08 opened 2 days ago

aalves08 commented 2 days ago

Is your feature request related to a problem? Please describe.

Based on the work done for https://github.com/rancher/dashboard/issues/11560 -> more concretely PR https://github.com/rancher/dashboard/pull/12367

If you toggle between default dirs and specific dirs, it should set the values for the specific dirs - at the moment if you create a cluster with a base dir, when you edit it, you see the 3 dirs, but if you toggle to use default and back again, you lose the values.

Describe the solution you'd like

On edit, values should persist even if you toggle the radio button

Describe alternatives you've considered

Additional context

yonasberhe23 commented 3 hours ago

as part of this enhancement, we should grey out the fields after creation to make it clear to the user what is expected behavior (that's the behavior 2.9.x). see https://github.com/rancher/dashboard/issues/11560#issuecomment-2450607955 for more context

2.9 - fields are NOT editable in edit mode (expected) image

2.10 - fields are editable in edit mode image